Lock Your Wordpress Sites Index File(Wordpress trick)

As we know wordpress is very popular CMS but its also difficult to save your wordpress site from hacking.I am sharing now a effective tips to make strong your wordpress security.How to lock your wprdpress index file? Look here



http://www.yourwebsite.com/wp-includes/
http://www.yourwebsite.com/wp-content/uploads/


wordpress security



we cant see the index file of wordpress and it strengthen your wordpress security
Now see here
http://www.alokborsho.com/wp-includes/
http://www.alokborsho.com/wp-content/uploads/

We can access wp index file and this sites are vulnerable to hack
Now question how to off your index ?

Login to your hosting cpanel and paste the code in your .htaccess file then save the file then if you or anybody want to access your wp index file this will show   403 Permission Denied you do not have permission for this request /wp-content/uploads/


# BEGIN WordPress
Options -Indexes

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteRule ^login/?$ /wp-login.php [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


# END WordPress 
 
 Disclaimer: Before pasting code take the backup of your .htaccess file
Share this article :
 

Post a Comment

 

Copyright © 2011. Tricks Duniya - All Rights Reserved