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)
-   -   Hotlink Protection ( Allowing Multiple Domains But Denying Others) (https://gfy.com/showthread.php?t=190855)

Stud Money 10-28-2003 02:33 AM

Hotlink Protection ( Allowing Multiple Domains But Denying Others)
 
Anyone have the .htaccess code handy to make this work?

So for instance domaina.com is the one i want to protect but, i want to allow domainb.com domainc.com domaind.com to hotlink images from domaina.com yet no other domains will be allowed to do so.

Does that make sense?

Juicy D. Links 10-28-2003 06:21 AM

Quote:

Originally posted by Stud Money
Anyone have the .htaccess code handy to make this work?

So for instance domaina.com is the one i want to protect but, i want to allow domainb.com domainc.com domaind.com to hotlink images from domaina.com yet no other domains will be allowed to do so.

Does that make sense?


dumbass thats a simple basic .htaccess list

icedemon 10-28-2003 07:49 AM

Code:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$ [NC]
RewriteCond %{HTTP_REFERER} !.*?domaina.com.* [NC]
RewriteCond %{HTTP_REFERER} !.*?domainb.com.* [NC]
RewriteCond %{HTTP_REFERER} !.*?domainc.com.* [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG)$ http://domain.com/bad.gif [R,L]



All times are GMT -7. The time now is 04:27 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123