Hacked Site - How to fix

Fixing a hacked site has become easier with a tool we highly recommend every wordpress site should have called wordfence security. its free and can and should be installed via plugins in your wordpress dashboard.

Install it via plugins

then add the following code into a .htaccess file in your www or public_html folder:
# BEGIN litespeed noabort
<IfModule rewrite_module>
        RewriteEngine On
        RewriteRule .* - [E=noabort:1]
</IfModule>
# END litespeed noabort


Once done log back into your Wordpress Dashboard and run a full wordfence scan. If it finds anything you can choose to restore the original which should resolve the issue.
Basically select Select Bulk Repair files and Repair them.

For those that cannot be repaired check that the files are not criticial ones and do a Bulk Delete if necessary.


Note: Always make backup of your files before making changes. Recommended.

Lastly open up PHPmyAdmin and check your wp_users table and check if there is any user called Service. Delete this user. At times some users are created as a backdoor for Hackers aswell.

Example below:


  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How To Install Wordpress

This tutorial will show you how to install WordPress. For this tutorial, you will need...

How To Configure Your Settings In Wordpress

1) This tutorial will show you how to configure your settings in WordPress. This...

How To Change Your Password In Wordpress

This tutorial will show you how to change your password in WordPress. This tutorial...

How To Edit Your Profile In Wordpress

This tutorial will show you how to edit your profile in WordPress. This tutorial...

How To Change Your Header In Wordpress

This tutorial will show you how to change your header in WordPress. This tutorial...