Title: Hacked? Bad Code in root/index.php
Last modified: August 19, 2016

---

# Hacked? Bad Code in root/index.php

 *  [sumit1988](https://wordpress.org/support/users/sumit1988/)
 * (@sumit1988)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/hacked-bad-code-in-rootindexphp/)
 * Hello Forum,
 * in the last weeks there were several “attacks” or something on my WP-Installation.
   
   Users reportet that if they visit my website, their kaspersky find a virus. I
   watched the code and there was a javascript from some russian spam website… i
   searched for the code in my wp-files and found it in the root/index.php (CHMOD
   644) I deleted it and everything was okay but it happened again. I allready installed
   Plugins like wp-security. What can i do do prevent bad people from putting bad
   code into my website?!
 * Thanks a lot for help
 * Sumit
 * ( [http://www.sumit-online.de](http://www.sumit-online.de) )

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/hacked-bad-code-in-rootindexphp/#post-1679818)
 * [http://codex.wordpress.org/FAQ_My_site_was_hacked](http://codex.wordpress.org/FAQ_My_site_was_hacked)
 * [http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/](http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/)
 * [http://ottodestruct.com/blog/2009/hacked-wordpress-backdoors/](http://ottodestruct.com/blog/2009/hacked-wordpress-backdoors/)
 *  [skippfop](https://wordpress.org/support/users/skippfop/)
 * (@skippfop)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/hacked-bad-code-in-rootindexphp/#post-1679855)
 * Hey submit,
 * i think the same thing happened to me but i cant find the code. do u think u 
   can take a look for me???

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hacked? Bad Code in root/index.php’ is closed to new replies.

## Tags

 * [bad code](https://wordpress.org/support/topic-tag/bad-code/)
 * [hacked](https://wordpress.org/support/topic-tag/hacked/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [skippfop](https://wordpress.org/support/users/skippfop/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/hacked-bad-code-in-rootindexphp/#post-1679855)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
