Sanjoy Roy

[MCM, MCP, SCJP] – Senior Programmer, Sites n Stores Pty Ltd.

Tag Archives: Linux Command

How to create a Password Protected Directory using linux command prompt?

Create a .htaccess file in the folder you want to set. like: #root@adu [/home/hostsite/public_html/admin]# vi .htaccess copy and paste the following lines: ———————————————————- AuthName “Secure Area” AuthType Basic AuthUserFile /home/hostsite/public_html/admin/.htpasswd require valid-user ———————————————————- Now set a password: #htpasswd -c .htpasswd admin New password: admin321 confirm password: admin321 You are done. test it: www.hostsite.com.au/admin and enter [...]

Unblocking IP address in Cpanel Server or Linux Command Line

You can unblock if from server shell console or from csf plugin if the serve is running cpanel. For 125.214.71.115 in WHM under the Plugins section go to ConfigServer Security&Firewall. Quick Allow tool should solve any blocking issues. If the server is not running Cpane then from linux console run : csf -a $IP where [...]

Follow

Get every new post delivered to your Inbox.