PDA

View Full Version : How can I prevent from someone using my site's(loading) URL some other site.?



fed.linuxgossip
29th June 2007, 12:22 PM
Hi,


How can I prevent from someone using my site's(loading) URL some other site.?



Site on another server is using my site in a frame on his site.


Please advise.

fed.linuxgossip
29th June 2007, 01:30 PM
It seems that adding a hotlink protection by using the following contents in .htaccess does the trick.

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://domain.tld/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domain.tld$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.tld/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.tld$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp|php)$ - [F,NC]