Forum Moderators: phranque
Hello,
I am trying to find as soon as possible a way to disable hotlinking for specific websites not every website but mine.
I find a lot of examples that just block everything.
I need to block only domains and subdomains like #*$!.com and forum.#*$!.com and some domains like #*$!.ltd.xx
If you can point me to an example how to do this I would appreciate it a lot
Thanks
[webmasterworld.com...]
I have found this as an example but I want some help.
If I want to ban a domain like #*$!.co.uk, it will be like
RewriteCond %{HTTP_REFERER} ^http://(www\.)?domain\.com\.uk/ [NC,OR] ?
Also with the above example I specify the www.domain.com, forum.domain.com how I can wildcard everything like *.domain.com ?
One last thing if the referer is an IP address how I will add it to the above example?
Thank you very much
RewriteCond %{HTTP_REFERER} ^http://abc\.domain\.com\.uk [NC,OR] ?
RewriteCond %{HTTP_REFERER} ^http://([^.]+\.)*domain\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://192\.168\.10\.101 [OR]
See the documents cited in our Forum Charter, and the tutorials in the Apache Forum Library (links to top of this page) for more info.
Jim