Title: wordpress invaded by foreign html codes
Last modified: August 19, 2016

---

# wordpress invaded by foreign html codes

 *  [betaruce](https://wordpress.org/support/users/betaruce/)
 * (@betaruce)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/wordpress-invaded-by-foreign-html-codes/)
 * Whenever I read up the html codes of my blog, it is full of html codes with links
   to sex or medicine websites…then I go to the theme editor and clear those codes,
   but they just come back again.
 * Can someone pls tell me the solution besides changing the theme? thx!

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

 *  Thread Starter [betaruce](https://wordpress.org/support/users/betaruce/)
 * (@betaruce)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/wordpress-invaded-by-foreign-html-codes/#post-791426)
 * if this has been discussed b4 can someone pls point me to the correct page or
   the keyword for searching? thanks.
 *  [tyler1234](https://wordpress.org/support/users/tyler1234/)
 * (@tyler1234)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/wordpress-invaded-by-foreign-html-codes/#post-791447)
 * where does the malicious code appear betaruce? I have been having a similar problem
   but the difficulty is that I can only see these spam outlinks in the google cache(
   text only) version of my site. It also makes my site get thrown out of google
   sending my traffic plunging.
 * Have you tried this thread to see if you were hacked?
    [http://wordpress.org/support/topic/168964/page/2?replies=41](http://wordpress.org/support/topic/168964/page/2?replies=41)
 *  Thread Starter [betaruce](https://wordpress.org/support/users/betaruce/)
 * (@betaruce)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/wordpress-invaded-by-foreign-html-codes/#post-791594)
 * the code is just inside the theme main template .php file….after i delete it,
   the code just come back within few days…
 * can someone pls tell me in what way is the code being inserted into the theme
   files (even I disable writing into the file)?
 *  [akeel](https://wordpress.org/support/users/akeel/)
 * (@akeel)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/wordpress-invaded-by-foreign-html-codes/#post-791668)
 * I’m having same problem. Do you were able to find a solution.
 * I’ve updated WordPress, cleared my theme, changed FTP and hosting passwords but
   these spam links came back again.

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

The topic ‘wordpress invaded by foreign html codes’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [akeel](https://wordpress.org/support/users/akeel/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/wordpress-invaded-by-foreign-html-codes/#post-791668)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
