Title: Found a javascript code in my theme header. Is it some hack?
Last modified: August 31, 2016

---

# Found a javascript code in my theme header. Is it some hack?

 *  [arpitagarwal82](https://wordpress.org/support/users/arpitagarwal82/)
 * (@arpitagarwal82)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/found-a-javascript-code-in-my-theme-header-is-it-some-hack/)
 * I found following javascript code in my theme header.
    [https://justpaste.it/s4r7](https://justpaste.it/s4r7)
 * I think my site was loading very slow because of it.
 * Can anyone look into it and tell me what this code do?
    Is my site hacked?
 * Any help would be highly appreciated.

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

 *  Thread Starter [arpitagarwal82](https://wordpress.org/support/users/arpitagarwal82/)
 * (@arpitagarwal82)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/found-a-javascript-code-in-my-theme-header-is-it-some-hack/#post-7159609)
 * Anyone? Any help?
 *  [bkdimri](https://wordpress.org/support/users/bkdimri/)
 * (@bkdimri)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/found-a-javascript-code-in-my-theme-header-is-it-some-hack/#post-7159610)
 * looks like some kind of code was injected in you page and its wrting a script
   tag in your document. The script has a scr to some external domain/website. I
   would suggest scan your site immediately on [https://sitecheck.sucuri.net/](https://sitecheck.sucuri.net/)
   
   Also remove the script from your header and follow all the security measures 
   to secure your site. Thee are lot of posts in this forum whcih tell you how to
   do it.
 *  [Matthew](https://wordpress.org/support/users/kidsguide/)
 * (@kidsguide)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/found-a-javascript-code-in-my-theme-header-is-it-some-hack/#post-7159614)
 * [the recommended security measures](https://codex.wordpress.org/Hardening_WordPress)

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

The topic ‘Found a javascript code in my theme header. Is it some hack?’ is closed
to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Matthew](https://wordpress.org/support/users/kidsguide/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/found-a-javascript-code-in-my-theme-header-is-it-some-hack/#post-7159614)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
