I have seen many type of viruses infecting wordpress blogs. You can check if your wordpress is infected by Right Clicking your blog homepage and select View Source. Start looking for the following types of code.

Iframe virus

<iframe src="http://virus-site" width="320" height="240"></iframe>

Usualy inserted at the end of your source code, after you close the html tag </html>

Search the source code for <iframe, in most cases your theme won’t have any IFRAME except the virus.

Encoded Javascript virus

Search for <script in your code and look for a lot of numbers. This are encoded characters that basicaly tell the browser to link or redirect to another website.

PHP Virus

<!--?php echo '<iframe src="http://virus-site...'; ?-->

This can be found in your index.php files of your website.

Removing the virus

Change your FTP password immediatly!

Search for the above codes in all your index.php files on your site (/index.php , /wp-admin/index.php , /wp-content/themes/[theme-name]/index.php etc.)

Remove the virus lines of code

Look for files that aren’t supposed to be in the wordpress structure. Example: /wp-content/upd.php and /wp-content/1012312asdasdsadas12321.php– This makes the hacker infect your website easily any time he wants just by accessing a specific URL of your blog. Here is the content of the file:

6 responses to “WordPress Virus and how to remove it”

Trying to complete my website, when i do a google search to check if my website is indexed “www.onlinesafety-training.com” 5 results show up, when i scroll down and click the show ommited results a few extra pages shows up including http://www.onlinesafety-training.com/wp-includes/js/jquer...
Can you tell me if this a Virus, and how i could fix Please

I need your help to remove a virus sir. You get a thank you, a link, a beer (is there a online beersupplydealer in Romania? arning: Cannot modify header information – headers already sent by (output started at /home2/mostafa/public_html/meesterversierder.nl/index.php:6) in /home2/mostafa/public_html/meesterversierder.nl/wp-includes/pluggable.php on line 896