As we know, wordpress offers good security, but hackers know the architecture of wordpress, so in many versions of wordpress, this kind of problem arises. But don’t worry, I will give you advice which are more usable.
1.Upgrade WordPress to the latest version
You must have to upgrade your wordpress if a latest version is available.
2.Hide the WordPress version
You must hide our wordpress version of your theme. I give you the code to hide wordpress version.copy and paste the code below in your theme.php function file.
remove_action (“wp_head”, “wp_generator”);
function wpt_remove_version () {
come back “;
}
add_filter (‘the_generator’, ‘wpt_remove_version’);
3.change the table prefix
all hackers know that wordpress provides the default prefix is ”wp _”. So you have to change it with the help of the plugin. There are so many plugins available for the change table prefix.
4.Secure the wp-config.php file using .htaccess
All the details of your wordpress site are available in the wp-config.php files, so we must need to secure this file. I give you the code to put it in your .htaccess file.
<Wp-config.php files>
authorize, refuse
deny everything
</Files>
5.Secure .htaccess file
As suggested above, we secure the wp-config.php file using .htaccess. So we also need to secure the .htaccess file. I am giving you code that you can put in your .htaccess file.
<.Htaccess.php files>
authorize, refuse
deny everything
</Files>
Good luck.
Leave A Comment