Cheap Car Insurance - Myspace Proxy - Online Loans - Online Advertising - Problem Mortgage

PDA

View Full Version : HTML IFRAME hack attack


gab1982
Dec 20th 2007, 9:19 pm
Awhile ago I knew someone who was plagued with a IFRAME hack attack, where a iframe code of size 1px in height was added to their site under the </body></html> tag, does anyone know how to get rid of this. It seemed to only affect certain pages and I don't want it affecting my site or server.

Just curious as it can't be good for business or a websites growth.

scottlpool2003
Dec 22nd 2007, 8:34 am
To be honest, Iframes aren't really good for webpages. Well they are for some but not for others. How come you have coding after your </body></html> tags?

lkj
Dec 23rd 2007, 1:09 am
set-up a mod_rewrite rule and block the referring site that steals your iframe content with REFERRAL value

HPA
Dec 23rd 2007, 1:31 am
Do even better, just add this code to the page, that he is linking to, this will redirect his homepage to your site. It means that you will be getting his traffic!

<script>

/*
Browser redirect Script- © Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and Terms Of Use,
visit dynamicdrive.com
*/

var browser_type=navigator.appName
var browser_version=parseInt(navigator.appVersion)

//if NS 4+
if (browser_type=="Netscape"&&browser_version>=4)
window.location.replace("YOUR SITE URL")
//if IE 4+
else if (browser_type=="Microsoft Internet Explorer"&&browser_version>=4)
window.location.replace("YOUR SITE URL")
//Default goto page (NOT NS 4+ and NOT IE 4+)
else
window.location="YOUR SITE URL"
</script>

Just add this to the page, he links! This will teach him a lesson. And you'll be getting his visitors, anyhow.

alextic
Jan 5th 2008, 4:38 am
Oh, Wow...