Forum Moderators: phranque
The first time I got the host to shut down the site, but now it's back again doing the same thing on another domain name.
I've contacted the host of the new webspace again, but don't want to play cat and mouse until this idiot gets bored and packs it in.
Any ideas of:
Damage it could cause? My antivirus / firewall and Spybot are stopping the trojans affecting my own machine.
How I can stop this by some means other than contacting the webspace providers he is using?
I'm guessing that the trojans, etc. are displayed around your website which is placed in the iframe.
The first move is to use a frame-breaker Javascript which will get your site out of the iframe. Add this in between the
<head> and </head> of your site pages: <script type="text/javascript">
if (parent.frames.length > 0) {
parent.location.href = self.document.location
}
</script> If your site is itself using frames, place the Javascript in the frameset page.
That will mean that anyone finding the iframed page is going to get your site only displayed, not the other site around it.
Also, if java script is turned off it wouldn't work, right?
You're right in saying it wouldn't work, but as the scumware downloads depend on Javascript/ActiveX as well, if JS is switched off so is the possibility of being hit.
I use a script like that on every single page I have online. As you said, it's a quick preventative measure.