I need to find a way to put a stop to a website that is using an <iframe> to embed my website into theirs. I would like to ban them from any access at all... as they are somehow killing my server. I tried adding a deny line in .htaccess to their domain and/or IP... but my site still shows. thanks,
It's not their IP calls your page, but the browsing people. So banning won't work. Use frame buster script on your pages :
Thanks... but I don't know why... but that don't work either. There's got to be a way to block the referral at the server level... but I can't seem to find it. Here's the site in question... if it helps: quetriunfo.com/usuario.php?id=1438 (I currently have /public_html chmod at 0700 to stop them from killing our server)
I found something posted on another site that seems to do the job. In .htaccess: rewriteEngine On rewriteCond %{HTTP_REFERER} ^http://www\.quetriunfo\.com [NC] RewriteRule !^quetriunfo\.txt - [F] PHP: This allows my site to run and produces a Forbidden error for the other site. I don't understand tho... why the RewriteRule line is referring to a file within the account that is now blocked by the rewriteCond line... and I played around a bit trying to redirect to another URL and have tried other options such as [L][R]... but the only way it seems to work is the way I posted above.
Take a look at your stats - then if they are getting enough traffic to warrant it tweak that .htaccess code to redirect to an affiliate program. Or create a page just for them where you can monetize it, or call em out. Otherwise just ignore it - if you spend all your time fighting people that do this stuff you will get old and die before your time....
In case you are using plesk control panel, there is an option to protect the hotlinking and achieve hot protection in the user control panel itself.