I have tried stopping them but my syntax must be wrong because it only stops some of them.
The site is blog.cz and the members each have their own subdomain like this
somebody.blog.cz
somebody-else.blog.cz
my code below is replacing my image with one from the main blog at blog.cz and it is working for somebody.blog.cz but not for somebody-else.blog.cz probably because of the hyphen. How do I account for that in my code?
- Code: Select all
RewriteCond %{HTTP_REFERER} ^http://([a-z0-9]+\.)?blog\.cz(/.*)?$ [NC]
RewriteRule ^store/files/images/(.*)$ http://nd.blog.cz/b/blog.blog.cz/obrazky/30824732.jpg [L]
I also want anybody who is not from blog.cz who tries to hotlink to get a banner from my site:
- Code: Select all
RewriteRule ^store/files/images/(.*)$ Banners/redirect_banner.gif [L,R=301]
How can I accomplish both of these at the same time?