Jul 20, 2008

How To Avoid The Bandwidth Robbery - How to avoid the bandwidth robbery

Free Web Hosting, No Ads > CONTRIBUTE > Tutorials
Pages: 1, 2, 3

free web hosting

How To Avoid The Bandwidth Robbery - How to avoid the bandwidth robbery

aka-2
Sometimes, some people link directly to images in your host. This people is robbering you bandwidth. To avoid this only have to write some code lines in your .htaccess file in your host root:

QUOTE

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://your-domain.com [NC]
RewriteCond %{HTTP_REFERER} !^http://www.your-domain.com [NC]
RewriteRule .*\.(gif|jpg|swf|png)$ - [NC,F]


There is another thing you can do. You can also show an image you want instead linked images. So the people that has been robbering you bandwidth will take a surprise. Just ad this to code:

QUOTE

RewriteRule .*\.(gif|jpg)$ http://tu-dominio/name-image-substitution.gif [R,NC]


I hope you enjoy this.

 

 

 


Reply

jlhaslip
Here at the Trap17, once you are Hosted, you can also use the Hotlink Protection in the Cpanel to do this same thing.
Similar to the Tutorial, you specify the domain names which you allow to link to your Images.
Nice Tutorial, though. Short and sweet.

Reply

Plenoptic
Ya that is always a good idea to keep people from robbing you of your bandwidth. I think if people want to view things they should go to your site to view them so you can maybe get a few more customers out of it or visitors atleast. I don't really have a reason to do this though at the moment but I like the idea.

Reply

vietonline
this is the great tutorial .thanks a lot.

the one thing that I don't understand is this code
QUOTE
RewriteRule .*\.(gif|jpg)$ http://tu-dominio/name-image-substitution.gif [R,NC]


Do I need to change the link in that code?
If I have to change the link there.How can I change it.

Anyway thanks for the great tutorial.

Reply

Dooga
I don't like to restrict images to certain referals, since some people block referals or change the referal fields to "google.com" or something... which means pictures on your site will appear as whatever you don't want...

Reply

uiop
QUOTE(Dooga @ Jul 23 2006, 12:04 AM) *

I don't like to restrict images to certain referals, since some people block referals or change the referal fields to "google.com" or something... which means pictures on your site will appear as whatever you don't want...

If you have a good knowledge of .htaccess files and PHP, then you could probably make a message appear asking them to use their normal referer.

Reply

MaverickFang
I still find it as a neat little tool, especialy if your not hosting through Trap17. Thanks for the post.

Reply

aka-2
Thank you jlhaslip, i didn't know that feature. Really, I have never had to use these tricks, but it's a good idea to keep people from robbing you of your bandwidth.

Usually, people who do this are people who begin blogging and who don't know that they are making something bad.

Ok, the code would have to be:

CODE
RewriteRule .*\.(gif|jpg)$ http://your-domain/name-of-substitute-image.gif [R,NC]


or maybe just:

CODE
RewriteRule .*\.(gif|jpg)$ http://your-domain/image.gif [R,NC]

rolleyes.gif

Reply

nitesh
.htaccess method works great if you do not have cPanel or any other similar app where you can manage hotlinking protection.

Reply

sportytalk
A great tutorial. It's always nice to have the ability to be able to keep control of the bandwidth without using the cpanel hotlink protection, whether it be because the server doesn't support it (this certainly isn't the case with trap17) or because for whatever reason the user doesn't want to bother with hotlink protection (I don't really know why this would be the case though).

If I ever end up without a hotlink protection in a cpanel, I will almost certainly use this code for the htaccess, as it will ensure that no-one else can consume all of my bandwidth.

Thanks for sharing.

Reply

Latest Entries

Kurosaki Ichigo
Does this :

QUOTE
RewriteRule .*\.(gif|jpg)$ http://tu-dominio/name-image-substitution.gif [R,NC]


Work in the Trap17 CP too ? Since you said that Trap17 has the htaccess configurations.

Nice tutorial by the way. Its really straight foreward.

Reply

voltahit
QUOTE(aka-2 @ Jul 22 2006, 07:43 PM) *

Sometimes, some people link directly to images in your host. This people is robbering you bandwidth. To avoid this only have to write some code lines in your .htaccess file in your host root:
There is another thing you can do. You can also show an image you want instead linked images. So the people that has been robbering you bandwidth will take a surprise. Just ad this to code:
I hope you enjoy this.

Thanks for the INFO

Reply

beeseven
It's really annoying, though and it doesn't matter unless both you and the site that linked to your picture get lots of traffic. Some people (such as myself) like to have referrers turned off and if a page is full of "NO HOTLINKING" images I'll just leave immediately.

Reply

AnGeL KiSS
thanks for sharing; whenever I'm low in bandwidth I'll be sure to try this tut biggrin.gif

Reply

Spiritreaver
These tips are very useful, I wish i had them earlier I will recommend these tips to my friends since they seem to complain alot about losing bandwith...

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2, 3
Similar Topics

Keywords : avoid bandwidth robbery avoid bandwidth robbery

  1. Increase Internet Bandwidth In Windows Xp - (9)
  2. Php Strings Tutorial - Using Strings To Avoid Repitition (1)
    One of the useful features of PHP is strings. You can use them to print a long text item that you
    may be posting more than once. It doesn't have to be long, though. Here is an example.
    $motto = "Free Web Hosting, No Ads."; $site = "Trap17"; ?> That bit of coding could be
    used in a piece of text such as: QUOTE You can also use strings to make database
    functions shorter or easier to read. I'll get into that later. I hope this tutorial was
    helpful to you guys....



Looking for avoid, bandwidth, robbery, avoid, bandwidth, robbery

Searching Video's for avoid, bandwidth, robbery, avoid, bandwidth, robbery
advertisement



How To Avoid The Bandwidth Robbery - How to avoid the bandwidth robbery



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE