![]() |
How do I add a domain to my htaccess to allow hotlinking from that domain?
Thanks
|
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] |
Thanks a lot :thumbsup
|
You can also use http://www.htaccesstools.com/hotlink_protection/
Sorry for the bump, but I tought you might find it helpfull :) |
|
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