Title: Hack wordpress
Last modified: September 12, 2019

---

# Hack wordpress

 *  [ameliedms](https://wordpress.org/support/users/ameliedms/)
 * (@ameliedms)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/hack-wordpress-wiilberedmodels/)
 * Hi,
 * I was hack, certainly due to a vulnerability in the plugin Advanced Access Manager(
   more info in this post that was closed as resolved… [https://wordpress.org/support/topic/hack-14/page/4/#post-11915333](https://wordpress.org/support/topic/hack-14/page/4/#post-11915333))
 * The think is all my pages are redirecting to this URL
    And I don’t know how to
   fix it !
 * I blocked those IPs in my HTaccess :
    Deny from 178.128.193 Deny from 50.63.162
   But I already had a Deny from all so I don’t know if it’s useful
 * I deleted AAM plugin and rename my plugin file “plugin-old” but the hack is still
   here, I can’t access my admin.
 * Please Help
    Regards Amelie
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhack-wordpress-wiilberedmodels%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [JNashHawkins](https://wordpress.org/support/users/jnashhawkins/)
 * (@jnashhawkins)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/hack-wordpress-wiilberedmodels/#post-11915547)
 * Blocking helps keep users from those addresses from entering your website but
   won’t stop a referral from your site to any other.
 * Carefully follow [this guide](https://wordpress.org/support/article/faq-my-site-was-hacked/).
   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/).
 *  [simplix](https://wordpress.org/support/users/simplix/)
 * (@simplix)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/hack-wordpress-wiilberedmodels/#post-11917020)
 * Hello,
 * We also had problems with our sites being hacked.
    To solve the problem we wrote
   a query to remove te scripts. Make sure before you excecute the query you have
   a backup made from your database.
 * UPDATE `wp_posts` SET `post_content` = REPLACE(`post_content`,”PUT_THE_SCRIPT_HERE”,””);
   
   UPDATE `wp_posts` SET `guid` = REPLACE(`guid`,”PUT_THE_SCRIPT_HERE”,””); UPDATE`
   wp_postmeta` SET `meta_value` = REPLACE(`meta_value`,”PUT_THE_SCRIPT_HERE”,””);
 * UPDATE `wp_options` SET `option_value` = REPLACE(`option_value`,”PUT_THE_LINK_HERE”,”
   PUT_HOMEPAGE_LINK_HERE”) WHERE `option_name` = “siteurl”;
    UPDATE `wp_options`
   SET `option_value` = REPLACE(`option_value`,”PUT_THE_LINK_HERE”,”PUT_HOMEPAGE_LINK_HERE”)
   WHERE `option_name` = “home”;
 * Make sure you use your own Prefix and copy the script from one of the wp_posts.
 *  [duke78](https://wordpress.org/support/users/duke78/)
 * (@duke78)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/hack-wordpress-wiilberedmodels/#post-11920501)
 * This happend on our sites since last friday every day!
 * The redirect is in all posts in wp_posts and also the site_url in wp_options.
 * replace it in the DB:
    UPDATE wp_posts SET post_content = replace(post_content,“
   <script src=’the url’ type=text/javascript language=javascript></script>”,”)
 * – Check if a new user exists with name “wordpresssadminn” or any new -> delete
   it!
    – Change your SQL DB Password – Change your Admin Passwords – Install Wordfence
   and activate the firewall – Update alle possible Plugins, Themes and WP
 * There are many other posts here with the same problem.
 *  [duke78](https://wordpress.org/support/users/duke78/)
 * (@duke78)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/hack-wordpress-wiilberedmodels/#post-11925283)
 * Solved the problem for me..
 * Uninstalled the following plugin:
    [https://de.wordpress.org/plugins/redirection/](https://de.wordpress.org/plugins/redirection/)

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

The topic ‘Hack wordpress’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 4 participants
 * Last reply from: [duke78](https://wordpress.org/support/users/duke78/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/hack-wordpress-wiilberedmodels/#post-11925283)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
