aka-2
Jul 22 2006, 11: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: 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 I hope you enjoy this.
Reply
jlhaslip
Jul 22 2006, 11:59 PM
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
Jul 23 2006, 12:14 AM
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
Jul 23 2006, 02:39 AM
this is the great tutorial .thanks a lot. the one thing that I don't understand is this code QUOTE 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
Jul 23 2006, 07: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...
Reply
uiop
Jul 23 2006, 08:41 PM
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
Jul 23 2006, 09:22 PM
I still find it as a neat little tool, especialy if your not hosting through Trap17. Thanks for the post.
Reply
aka-2
Jul 24 2006, 04:08 AM
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]
Reply
nitesh
Jul 24 2006, 08:34 AM
.htaccess method works great if you do not have cPanel or any other similar app where you can manage hotlinking protection.
Reply
sportytalk
Jul 26 2006, 09:26 AM
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
Oct 15 2006, 11:46 AM
Does this : QUOTE 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
Sep 22 2006, 01:07 AM
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
Sep 17 2006, 04:42 PM
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
Sep 16 2006, 07:31 PM
thanks for sharing; whenever I'm low in bandwidth I'll be sure to try this tut
Reply
Spiritreaver
Aug 23 2006, 07:02 PM
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
Similar Topics
Keywords : avoid bandwidth robbery avoid bandwidth robbery- Increase Internet Bandwidth In Windows Xp
- (9)
- 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
|
|