Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Creating a captcha with amazon node .htaccess"

$
0
0
hello i have a project that i have to create a captcha
can someone please help me do this in my mac terminal im a beginner tell me the steps to do this?




in public_html, create a file named ".htaccess" with the following content:

AuthType Basic
AuthName "CIS440"
AuthBasicProvider file
AuthUserFile <path name to your password file. see below>
Require valid-user




in order to create your own password file to be used for "AuthUserFile", do this


htpasswd -c <path name to the password file> <your user id> <your web password>

the password file should be somewhere not under the public_html directory (you would not want someone to be able to download your password file)

Viewing all articles
Browse latest Browse all 16232

Trending Articles