![]() |
blocking an iframe loading my galleries?
oK, some nice guy is loading some of my galleries into an iframe. He replaces the links from the thumbs to the preview movies with a trojan .exe.
So I found some scripts like framebuster which should prevent this, but scripting couold hardly be used on galleries for their rules. Any solution for this maybe using .htaccess or somehting like this?|huh |
This, in your htaccess, might work:
Code:
SetEnvIfNoCase Referer ".*(baddomainname).*" BadReferrer |
Quote:
|
Nevermind.. I was going to post a javascript solution but I don't think tgps' bots would like that so.. Maybe a conditional php script.. something like if referer = x; include break out of frames header; else just display normally.
|
Why not use .htaccess to ban his server's IP?
Code:
|
or you can block his traffic using .htaccess
just add this: Block traffic from a single referrer: RewriteEngine on # Options +FollowSymlinks RewriteCond %{HTTP_REFERER} badsite\.com [NC] RewriteRule .* - [F] Block traffic from multiple referrers RewriteEngine on # Options +FollowSymlinks RewriteCond %{HTTP_REFERER} badsite\.com [NC,OR] RewriteCond %{HTTP_REFERER} anotherbadsite\.com RewriteRule .* - [F] It`s working I use on my site |
Quote:
Code:
RewriteCond %{HTTP_REFERER} ^(www\.)?badsite\.com [NC,OR] |
Hey Frank,
Have you tried sifting through your server logs to see how the offending site is requesting your pages? If none of the solutions mentioned here work posting a few lines of your server log may make it easier for more experience gurus to find a solution. |huh |
Quote:
Here is the link to the cheating site for those who are interested in it. (do not click the thumbs and install the .exe) http://pleasure-porn.net/ronne/1419836110/1/?id=1114 And here is the code snippet from his site which includes my gallery link: It´s an iframe above the head tag of his site. |
frank,
There are a few threads at webmasterworld about this. Here is one of em. I also put in a email to a friend of mine that might know how it's done. http://www.webmasterworld.com/forum91/450.htm Here's another: http://www.webmasterworld.com/forum91/1131.htm |
All times are GMT -4. The time now is 08:39 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc