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)
-   -   How do I add a domain to my htaccess to allow hotlinking from that domain? (https://gfy.com/showthread.php?t=335200)

Aquarius 08-02-2004 04:03 PM

How do I add a domain to my htaccess to allow hotlinking from that domain?
 
Thanks

Lycanthrope 08-02-2004 04:15 PM

Just add the additional domain & ip like so:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://xx.xx.xx.xx.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://xx.xx.xx.xx:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?otherdomain.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?otherdomain.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://xx.xx.xx.xx.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://xx.xx.xx.xx:80.*$ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Jj][Pp][Ee][Gg]$|.*[Gg][Ii][Ff]$ http://redir.url [R,L]

Aquarius 08-02-2004 04:18 PM

Thanks a lot :thumbsup

eskimoen 08-07-2004 05:43 AM

You can also use http://www.htaccesstools.com/hotlink_protection/

Sorry for the bump, but I tought you might find it helpfull :)

Melvin the Dude 08-07-2004 07:09 AM

http://www.gofuckyourself.com/showth...hreadid=263121


:glugglug


All times are GMT -7. The time now is 12:56 PM.

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