Connect with us

Pay Per Code

Pay Per Code

5 Tips on Preventing Hacks on WordPress


5 Tips on Preventing Hacks on WordPress

We all have been there another WordPress website being hacked. It could have been from Revolution Slider or even the core version of WordPress. You can prevent this by updating your stuff (no brainer). But to prevent and protect yourself in the future by doing these 5 quick tips in WordPress.


  1. Prevent editing of files (plugins & appearance) within the CMS Dashboard by adding this line of code in the wp-config.php file:
    define(‘DISALLOW_FILE_EDIT’, true);
  2. Rename the administrative account: When creating an administrative account, avoid easily guessed terms such as admin or webmaster as usernames because they are typically subject to attacks first. On an existing WordPress install you may rename the existing account in the MySQL command-line client with a command like UPDATE wp_users SET user_login = ‘newuser’ WHERE user_login = ‘admin’;, or by using a MySQL frontend like phpMyAdmin.
  3. Change the table_prefix: Many published WordPress-specific SQL-injection attacks make the assumption that the table_prefix is wp_, the default. Changing this can block at least some SQL injection attacks.
  4. Finding that extra security like a firewall, a great company I have worked with in the past is a company called Sucuri. I am not affiliated with them specifically, I did meet the owner Tony at WordCamp in 2015, he was a great guy!
  5. Do not allow your plugins or core of WordPress become outdated, take the extra time and update everything. It will save you hours from cleaning a backdoor or a huge encrypted hack.

Any questions or need assistance, feel free to reach me on twitter or email me at 🙂


More in WordPress

Instead of using ads, I am having you mine for crypto currency to support this site. Here are your stats:

You can start or stop at anytime but please wait for some accepted hashes before you do.


Popular Posts

To Top