![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: May 2004
Location: Mom's basement
Posts: 4,754
|
How do I add a domain to my htaccess to allow hotlinking from that domain?
Thanks
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
|
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] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: May 2004
Location: Mom's basement
Posts: 4,754
|
Thanks a lot
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: May 2001
Location: Denmark
Posts: 146
|
You can also use http://www.htaccesstools.com/hotlink_protection/
Sorry for the bump, but I tought you might find it helpfull ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Nov 2003
Posts: 844
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |