GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   .htaccess to prevent image hotlinking? (https://gfy.com/showthread.php?t=520305)

brizzad 09-24-2005 04:32 PM

.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.

Manowar 09-24-2005 04:35 PM

http://www.businessvoyeur.com/2005-0...nking-in-depth

Might help you a bit

brizzad 09-24-2005 04:46 PM

Quote:

Originally Posted by Manowar

it didnt really help, but it did give me some better keywords to search for in google and i found this

http://altlab.com/htaccess_tutorial.html

so thanks :thumbsup

broke 09-24-2005 04:46 PM

I heard of this thing once.... what was it again?

GOOGLE

~Ray 09-24-2005 04:49 PM

had this bookmarked for years:

http://www.htaccesstools.com/

brizzad 09-24-2005 04:50 PM

Quote:

Originally Posted by AdvertisingSex
had this bookmarked for years:

http://www.htaccesstools.com/

that's great, i'm bookmarking it now :thumbsup thanks

fusionx 09-24-2005 05:04 PM

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

nikki99 09-24-2005 05:06 PM

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