![]() |
.htaccess to prevent image hotlinking?
Does anyone have any links that could help me get this set up?
It'd be great if I could have a set image show up regardless of what image was being hotlinked. |
|
Quote:
http://altlab.com/htaccess_tutorial.html so thanks :thumbsup |
I heard of this thing once.... what was it again?
|
|
Quote:
|
To send an image to specific domains:
RewriteEngine on RewriteCond %{HTTP_REFERER} .*fusker*.*$ [NC] RewriteCond %{HTTP_REFERER} .*usefulidiot*.*$ [NC] RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ http://www.primanudes.com/hotlink/hotlink.jpg [R] This says if one of those specific domains asks for an image, send them something else. To send an image to all hotlinkers: RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.primanudes\.com RewriteCond %{HTTP_HOST} !^primanudes\.com RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ http://www.primanudes.com/hotlink/hotlink.jpg [R] put YOUR domain in the second line. If your site resolves with other names, add those as well (either on their own lines, or, use a regEx to do it). That says if it's not your domain asking for an image, send them something else. If you have a bunch of subdomains, use something like: RewriteCond %{HTTP_HOST} !^.*primanudes.com.* Here's a thread with more about .htaccess: http://www.gofuckyourself.com/showthread.php?t=413223 |
I have a domain protected for hotlink and didnīt knew it ...
|
All times are GMT -7. The time now is 09:45 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123