|<meta name=”generator” content=”WordPress <?php bloginfo(’version’); ?>” />|
and remove the php code and make it look like:
|<meta name=”generator” content=”WordPress | Or Whatever You want here” />|
If you can’t find the meta tag:
Place this line of code in your functions.php file.
This will remove <meta name=”generator” > tag from wordpress. Changing this meta tag is important because of spammers. If they know the version of your wordpress website it becomes easy for them to post spam comments. It also prevents hack attempts.
Simply write this line in your .htaccess :
SetEnvIfNoCase User-Agent “^Libwww-perl” bad_bot
<Limit GET POST>
Allow from all
Deny from env=bad_bot
To do this Go to You Hosting >> Root Domain of your site >> Find .htaccess file and past the code just above the line “# END WordPress”
This step will help you in improving your SEO score as well.
User-agent: *Disallow: /abc/wp-admin/Allow: /abc/wp-admin/admin-ajax.php Here “abc” is the directory where you have installed your wordpress.
Please comment below if you have more suggestions security of a wordpress website.