Title: Malicious script causing SyntaxError
Last modified: September 2, 2016

---

# Malicious script causing SyntaxError

 *  Resolved [crharris](https://wordpress.org/support/users/crharris/)
 * (@crharris)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/malicious-script-causing-syntaxerror/)
 * My webspace was attacked with a virus/malware that caused my wordpress sites 
   to be redirected to a pornsite. There was script injected to the htaccess file
   and this ONLY affected the mobile version of the websites.
 * So I’ve fixed that, but the malicious script is hijacking my mobile css files
   and I have no idea how to fix this. I know it is not theme related because it
   is the same error with other themes. I have re-installed wordpress, and the theme(
   which in this one case is Avada). I have included a screen shot of the error 
   that I see in developer tools.
 * My webhosting has been useless in helping me.
 * Screenshot: [https://drive.google.com/open?id=0Bx2lQPimfJu_SDRMcjRPUm4yX2s](https://drive.google.com/open?id=0Bx2lQPimfJu_SDRMcjRPUm4yX2s)
 * Thanks in advance!

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 8 months ago](https://wordpress.org/support/topic/malicious-script-causing-syntaxerror/#post-7723430)
 * Remain calm and 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).
 *  Thread Starter [crharris](https://wordpress.org/support/users/crharris/)
 * (@crharris)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/malicious-script-causing-syntaxerror/#post-8159146)
 * Thanks so much for your reply! It was very helpful. Turns out there were htaccess
   files everywhere and these articles helped me narrow down where to look.

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

The topic ‘Malicious script causing SyntaxError’ is closed to new replies.

## Tags

 * [syntaxerror](https://wordpress.org/support/topic-tag/syntaxerror/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [crharris](https://wordpress.org/support/users/crharris/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/malicious-script-causing-syntaxerror/#post-8159146)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
