Title: Conditional Hack On Website
Last modified: October 15, 2020

---

# Conditional Hack On Website

 *  [brandonm222](https://wordpress.org/support/users/brandonm222/)
 * (@brandonm222)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/conditional-hack-on-website/)
 * Hi there,
 * I am trying to fix one of my websites which has been hacked with the Pharma hack.
   I found the web.config and .htaccess files had been compromised and changed them.
   However, the problem is still there. I also deleted files ascociated with the
   hack off my server. But the problem is still there. Can anyone recommend anything
   else I should be trying? I know my version of wordpress is a little older but
   my server wont allow me to go higher for now until I pay more. Is there anyway
   I can check what php file is being called?
    The website works fine if you just
   go to it but redirects when seen on google. Any ideas?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fconditional-hack-on-website%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Niall Madhoo](https://wordpress.org/support/users/nm1com/)
 * (@nm1com)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/conditional-hack-on-website/#post-13540762)
 * Hi [@brandonm222](https://wordpress.org/support/users/brandonm222/),
 * Sorry to hear you site was hacked.
 * Here are **detailed instructions** on the **steps** to take if your site has 
   been **hacked**: [https://wordpress.org/support/article/faq-my-site-was-hacked/](https://wordpress.org/support/article/faq-my-site-was-hacked/).
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/conditional-hack-on-website/#post-13540791)
 * Also, When you’re done, you may want to implement some (if not all) of [the recommended security measures](https://wordpress.org/support/article/hardening-wordpress/)
   and [start backing up your site](https://wordpress.org/support/article/wordpress-backups/).

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

The topic ‘Conditional Hack On Website’ is closed to new replies.

## Tags

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

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 2 replies
 * 3 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/conditional-hack-on-website/#post-13540791)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
