DELETE WORDPRESS VERSION
Here is the code for deleting the version of WordPress that you are using as shown in WP Security Pt. 6. Remember to place it at the end of your Theme Functions (functions.php) file just above the ?> code.
remove_action(‘wp_head’,'wp_generator’);
****************************************************
HARDENING THE SITE’S URL
This is the code for hardening your site’s URL as seen in WP Security Pt. 4. This code goes in the WP-Config.php file just above this line:
/* That’s all, stop editing! Happy blogging. */
This is the code:
define(‘WP_SITEURL’, ‘http://yoursite.com’);
define(‘WP_HOME’,'http://yoursite.com’);
****************************************************
PROTECTING THE WP-CONFIG FILE
Here is the code to protect the wp-config file as shown in WP-Security Pt. 3. The code is placed in the .htaccess file. Make a copy of the file before your make any changes to it just in case something goes wrong.
Here is the code:
<Files wp-config.php>
Order Allow, Deny
Deny from all
</Files>
****************************************************
PROTECTING THE .HTACCESS FILE
Here is the code to protect the wp-config file as shown in WP-Security Pt. 3. The code is placed in the .htaccess file. Make a copy of the file before your make any changes to it just in case something goes wrong.
Here is the code:
<File .htaccess>
Order Allow,Deny
Deny from all
</File>