Difference between revisions of "Main Page/Stuff/password-protect/htaccess"

From phurvitz
Jump to: navigation, search
(New page: #!/bin/sh if [ -f ./.htaccess ] then rm ./.htaccess fi touch ./.htaccess dir=`pwd` echo $dir echo "AuthUserFile $dir/.htpasswd" >> ./.htaccess echo "AuthName Here" >> ./.htaccess echo ...)
(No difference)

Revision as of 21:03, 1 February 2010

  1. !/bin/sh

if [ -f ./.htaccess ] then

  rm ./.htaccess

fi touch ./.htaccess dir=`pwd` echo $dir echo "AuthUserFile $dir/.htpasswd" >> ./.htaccess echo "AuthName Here" >> ./.htaccess echo "AuthType Basic" >> ./.htaccess echo "<Limit GET>" >> ./.htaccess echo "require valid-user" >> ./.htaccess echo "</Limit>" >> ./.htaccess