Title: WordPress Website Keep Getting Malicious Code Injected
Last modified: July 3, 2017

---

# WordPress Website Keep Getting Malicious Code Injected

 *  [masterne0](https://wordpress.org/support/users/masterne0/)
 * (@masterne0)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/wordpress-website-keep-getting-malicious-code-injected/)
 * _[ Moderator note: [moved to Fixing WordPress](https://wordpress.org/support/topic/before-posting-in-everything-wordpress/?view=all).]_
 * I have wordpress sites that keep getting malicious code injected into the pages.
   How can I stop them from happening as I have to keep going into them and removing
   the line.
 * I have updated wordpress and try some malware scanner but codes like “<script
   src=’URL’ type=’text/javascript’></script>” keeps getting injected causing site
   redirects. I can remove it but it annoying having to do this every time.

Viewing 1 replies (of 1 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/wordpress-website-keep-getting-malicious-code-injected/#post-9282805)
 * Carefully follow [this guide](https://codex.wordpress.org/FAQ_My_site_was_hacked).
   When you’re done, you may want to implement some (if not all) of [the recommended security measures](https://codex.wordpress.org/Hardening_WordPress).

Viewing 1 replies (of 1 total)

The topic ‘WordPress Website Keep Getting Malicious Code Injected’ is closed to 
new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/wordpress-website-keep-getting-malicious-code-injected/#post-9282805)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
