![]() |
Stop Image Hotlinking!
1 Attachment(s)
Hey all,
I thought that this might be usefull for you all its very simple and you can do it within 1 minute! Basically all it does is stop people from hotlinking your images and using your bandwidth! This code below allows your to stop hotlink for all sites apart from the sites you choose all you do is add this code your you .htaccess file! Code:
RewriteEngine on thats it easy as pie! remember to back up your .htaccess file before editing anything! |
reserved for later comments
|
Thanks!
|
your welcome
|
Nice job, but with the second code it does not load any images on my own website.
|
Quote:
+1. :( |
I have been trying this here by previewing my post, doesn't work, my original image shows instead of my anti-hotlink image.
|
i have changed the code try that it should work better now if you do not want a seconde domain then just delete that line!
|
You should just do this through your cpanel.
|
and what if they dont have cpanel not everyone is rich you know
|
Well that works, but I can´t get the deny.png to show. There´s just no image or a brokenlink-img. But it blocks other websites.
|
Quote:
|
At the bottom of your .htaccess file you drop in this code.
Code:
RewriteEngine On |
add this into your .htacces file in your forums root
Code:
RewriteEngine on |
Quote:
your forgot to put your sites domain then the image socation i etided it in the quote take a look! |
Thanks mate, but I tried that surely, too. Still not working. Cache always empty before I test.
Anyway, this is still good enough. :) |
hmmm try putting www. before your domain if not then im stumped it should work!
|
Works, but not show alternative image.
I put one smile of my forum in Post #3 of this thread, but isn't sustitute for nhl.png image. |
this is mine which i have used for years, works great, use .gif for the deny picture!
Code:
RewriteEngine on |
Thanks theadvs, woks fine!.
Example wen i put a icon of my forum: http://rotolandia.com/images/icons/roto2cafe.gif |
Quote:
|
Quote:
HTML Code:
RewriteEngine on *snip* nasty poo removed! So what have I done wrong? |
EidolonAH, woks fine for you, I see a poo :)
Delete cookies of your site, and you can see the diference. |
Quote:
|
:):):)
|
thanks for this....cant make it work...:(
here's my code RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://.*epaloids\.com.*$ [NC] RewriteCond %{REQUEST_URI} !^.*leech\.gif$ [NC] RewriteRule ^.*\.(swf|bmp|gif|jpg|png|jpeg|avi|wmv|mpg|mpeg|wa v|mp3)$ http://www.epaloids.com/leech.gif [NC,R,L] need help pls. thanks and best regards |
Quote:
|
Quote:
|
what about google spiders?? Do not we must insert his url's in this code??
|
Quote:
how can alow bot for save this pic and page ? |
I have read something about and many people insert the google's urls in this file.
But I'm not sure at 100% |
Where does the .htaccess file need to reside? I believe my server has a couple of them, so would the html_public folder block all images from all sub-folders?
|
Does this work for gallery images which are stored in the vb database and not in the filesystem?
|
I need to go about this a bit differently...
Is it possible to only list the sites you want to block, rather than listing the sites you want to allow? It would be alot easier for me to just block certain sites. |
basically with a bit of code changes it will do what you want but this is just to allow the sites that you write in there to be allowed as its designed to stop all other sites like google linking your site so no one reads your content they just steal your images!
|
this works for all versions correct?
|
Thanks a lot
|
All times are GMT. The time now is 05:55 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|