How to Protect your WordPress Website

| September 27, 2010
Advertisements

Irrespective of the fact that the CMS of WordPress is fairly secure, stable and safe when it comes to security but still many users have some reservations about WordPress security. There is no limit to the vast variety of improvements and additional options which you can add to make your website much tougher. You can easily find many useful plug-in to build a hacker-proof website. But this is more difficult way to do so as users won’t prefer to implement changes that they don’t know in PHP code. On the other hand it is more feasible to manually add small PHP strings so that u can also keep track of them and if something goes wrong, you can easily delete those PHP strings.

Below is the list of some useful PHP strings you can use for protecting your WordPress website.

1) To prevent people from peering at your php.ini file write this code into your .htaccess file:

<Files php.ini>

Order allow, deny

Deny from all

</Files>

2) To prevent people from peering at your .htaccess write this code into the .htaccess itself:

<Files .htaccess>

order allow, deny

deny from all

</Files>

3) To prevent people from peering at your plug-in folder create with your notepad a black file and name it index.html:

Place this file in the plug-in folder.

4) Prevent people, and malicious software from peering at your wordpress version remove from the footer.php or header.php file located in your theme this line:

<meta content=”WordPress <?PHP bloginfo(‘version’); ?>” />

Advertisements

Category: WordPress

Comments are closed.