...

View Full Version : Htaccess - anti-pic-hot-link excl. subdomains



Jerome
04-05-2010, 07:34 PM
Hi,

The code mentioned below is great....

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite\.com/.*$ [NC]
RewriteRule .*\.(gif|jpg)$ - [F,L]

However, I would like to have a subdomain, like sub.mysite.com, and show pictures on it....

Can you help me?

Thanks,
Jerome

Jerome
04-05-2010, 08:28 PM
Found it,

RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite\.com/.*$ [NC]

Need to be rewritten as:

RewriteCond %{HTTP_REFERER} !^http://(www|sub\.)?mysite\.com/.*$ [NC]

Thanks anyway



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum