|
2006-11-03, 02:59 PM | #1 |
Stupid risks make life worth living
|
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? |
2006-11-03, 03:21 PM | #2 |
Madness is like gravity. All it takes is a little... push.
Join Date: Feb 2006
Location: California
Posts: 1,679
|
This, in your htaccess, might work:
Code:
SetEnvIfNoCase Referer ".*(baddomainname).*" BadReferrer order deny,allow deny from env=BadReferrer
__________________
~Warm and Fuzzy. |
2006-11-03, 03:45 PM | #3 | |
Stupid risks make life worth living
|
Quote:
<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> |
|
2006-11-04, 01:17 AM | #4 |
Heh Heh Heh! Lisa! Vampires are make believe, just like elves and gremlins and eskimos!
Join Date: Jan 2006
Posts: 72
|
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.
Last edited by QuickDraw; 2006-11-04 at 01:23 AM.. |
2006-11-09, 12:12 PM | #5 |
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
|
Why not use .htaccess to ban his server's IP?
Code:
<Limit GET POST> Order Deny, Allow Deny from Leecher's.server.IP </Limit>
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare. |
2006-11-09, 01:36 PM | #6 |
If something goes wrong at the plant, blame the guy who can't speak English
Join Date: Oct 2006
Posts: 35
|
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 |
2006-11-09, 01:54 PM | #7 | |
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
|
Quote:
Code:
RewriteCond %{HTTP_REFERER} ^(www\.)?badsite\.com [NC,OR] RewriteCond %{HTTP_REFERER} ^(www\.)?anotherbadsite\.com
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare. |
|
2006-11-09, 02:39 PM | #8 |
Madness is like gravity. All it takes is a little... push.
Join Date: Feb 2006
Location: California
Posts: 1,679
|
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.
__________________
~Warm and Fuzzy. |
2006-11-09, 03:12 PM | #9 | |
Stupid risks make life worth living
|
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: <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. Last edited by frankthetank; 2006-11-09 at 03:16 PM.. |
|
2006-11-09, 11:52 PM | #10 |
Progress rarely comes in buckets, it normally comes in teaspoons
Join Date: Jun 2005
Location: Dark Side Of Naboo
Posts: 1,289
|
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 Last edited by Maj. Stress; 2006-11-09 at 11:55 PM.. |
|
|