Wednesday, April 10, 2013

Blocking your application root files access from outer world and accessible for particular user.


For the security reason it is important to secure your root files from outer world as a webmaster. Just follow below steps..
Open .htaccess file and edit as below
AuthType Basic
AuthName “Password Required”
AuthUserFile C:\xampp\htdocs\ Application_folder_name\.htpasswd
Require user webpro

Open cmd prompt create .htpasswd file

C:\Users\moshiur.rahman\xampp\apache\bin>htpasswd -c c:\Users\moshiur.rahman\xam
pp\htdocs\Billing\.htpasswd webpro
Automatically using MD5 format.
New password: ******
Re-type new password: ******
Adding password for user webpro

Finally you can see a .htpasswd file created with encrypted password for webpro

webpro:$apr1$aRU90GIL$u8FEMMi1NH/q.JpDUuuhN.

No comments:

Post a Comment