WordPress Security

Posted on 17 March 2019 by 0 Comment single

WordPress Security

WordPress is an open source GPL licensed admin panel. WordPress open source codes can be turned off . Back up your site with certainty before making security settings. It will be easy to return to the previous setting. Necessary steps announced .

 

WordPress Security Plugins

  • BulletProof Security
  • Sucuri Security

Turn off access to the WordPress Admin Section . By using the following code, you can only allow access to the WordPress admin section from certain IPs.

AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName “WordPress Admin Access Control”
AuthType Basic
<LIMIT GET>
order deny,allow
deny from all
allow from xx.xx.xx.xxx
allow from xx.xx.xx.xxx
</LIMIT>

Note that you must replace xx.xx.xx.xxx with your own IP address. You can find out your IP address using this website. If you use multiple connections to manage your WordPress site, make sure that other IP addresses are included here (you can add as many as you want). It is not recommended to use this code if you have a dynamic IP address.

Changing the attachment in wp-config.php

$table_prefix = ‘wp_’;

Update database tables

You need to update all entries in your WordPress database. You can do this using phpMyAdmin.
In Section 1, select the database that you located and open it.
There are 12 tables in a normal WordPress setup and each one needs to be updated. However, this process can be done quickly by using the SQL section in phpMyAdmin.
It may take quite a while to change each table manually, so using SQL, we’ll accelerate things a bit. Update all tables in your database using the following syntax.

RENAME table `wp_commentmeta` TO `wp_1secure1_commentmeta`;
RENAME table `wp_comments` TO `wp_1secure1_comments`;
RENAME table `wp_links` TO `wp_1secure1_links`;
RENAME table `wp_options` TO `wp_1secure1_options`;
RENAME table `wp_postmeta` TO `wp_1secure1_postmeta`;
RENAME table `wp_posts` TO `wp_1secure1_posts`;
RENAME table `wp_terms` TO `wp_1secure1_terms`;
RENAME table `wp_termmeta` TO `wp_1secure1_termmeta`;
RENAME table `wp_term_relationships` TO `wp_1secure1_term_relationships`;
RENAME table `wp_term_taxonomy` TO `wp_1secure1_term_taxonomy`;
RENAME table `wp_usermeta` TO `wp_1secure1_usermeta`;
RENAME table `wp_users` TO `wp_1secure1_users`;

Some WordPress themes or add-ons can create extra tables in the database, some values ​​in your database may need to be updated manually. To do this, you can make a separate SQL query in the options and usermeta tables.

For options table, use the following:

SELECT * FROM `wp_1secure1_options` WHERE `option_name` LIKE ‘%wp_%’

For the usermeta table:

SELECT * FROM `wp_1secure1_usermeta` WHERE `meta_key` LIKE ‘%wp_%’

When you receive the SQL query results, update all the wp_ values ​​with the newly set attachment and complete your work. In the usermeta table, you need to edit the meta_key field, and in the options table, the option_name value must be changed.

Wordpress Tags: , ,
  • Latest Blog

  • Products