Wildcards in htaccess and other server woes...

There a way to make htaccess stop hotlinking without preventing subdomains from using images?

Currently I'm using:

Options +FollowSymlinks
Rewriteengine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://mydomain.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://*.mydomain.net/.*$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG)$ - [F]

Which does not work for subdomains.

 

 

 

 

Top