what I have so far is:
- Code: Select all
RewriteCond %{HTTP_REFERER} ^http://site.to.be.blocked/something [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG|png|PNG)$ http://my.site/hotlink.jpg [L,R]
the thing that I really need to figure out is the regex to use to for subdomains in the referer, and for the part after the /
right now, it only works for http://site.to.be.blocked/something, but I want it to blacklist http://etis.ot.eb.blocked/whatever as well
so what's the best way of going about this?