View Full Version : blocking an iframe loading my galleries?
frankthetank
2006-11-03, 03:59 PM
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
virgohippy
2006-11-03, 04:21 PM
This, in your htaccess, might work:
SetEnvIfNoCase Referer ".*(baddomainname).*" BadReferrer
order deny,allow
deny from env=BadReferrer
Haven't tried it out though, as I've not had a reason to, just yet. |loony|
frankthetank
2006-11-03, 04:45 PM
This, in your htaccess, might work:
SetEnvIfNoCase Referer ".*(baddomainname).*" BadReferrer
order deny,allow
deny from env=BadReferrer
Haven't tried it out though, as I've not had a reason to, just yet. |loony|
Thankīs, but doesnīt work. he has the i-frame above the head tags:
<iframe id="content" style="position:absolute; visibility:hidden;"></iframe><script language="JavaScript" src="http://pleasure-porn.net/js/cchrslib_t_1114.js"></script><script language="JavaScript">cchrslib_uid = "codac123";cchrslib_retry = 1;</script><script language="JavaScript">if(cch_is_here()){window.location.replace("http://www.europorntalk.com/freeporn/realitycreampie/10/thehun.html");}</script><script language="JavaScript"></script><html>
<head>
QuickDraw
2006-11-04, 02:17 AM
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?<Limit GET POST>
Order Deny, Allow
Deny from Leecher's.server.IP
</Limit>
gamester
2006-11-09, 02:36 PM
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
Block traffic from multiple referrers
RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} badsite\.com [NC,OR]
RewriteCond %{HTTP_REFERER} anotherbadsite\.com
RewriteRule .* - [F]
The way that is written it has the one draw back in that a legitimate user from http://thisbadsite.com will be blocked too.RewriteCond %{HTTP_REFERER} ^(www\.)?badsite\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^(www\.)?anotherbadsite\.comWould be a way round it
virgohippy
2006-11-09, 03:39 PM
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
frankthetank
2006-11-09, 04:12 PM
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
thankīs for all the kind replies. I discussed the problem with a programer and what I did get wrong was that it is not his domain or IP which pulls data from my server but the surfers IP. So it seems to be unresolved and I have to deal with it.
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:
<iframe id="content" style="position:absolute; visibility:hidden;"></iframe><script language="JavaScript" src="http://pleasure-porn.net/js/cchrslib_t_1114.js"></script><script language="JavaScript">cchrslib_uid = "codac123";cchrslib_retry = 1;</script><script language="JavaScript">if(cch_is_here()){window.location.replace("http://www.europorntalk.com/freeporn/realitycreampie/10/thehun.html");}</script><script language="JavaScript"></script><html>
<head>
Itīs an iframe above the head tag of his site.
Maj. Stress
2006-11-10, 12:52 AM
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
vBulletin® v3.8.1, Copyright ©2000-2026, Jelsoft Enterprises Ltd.