djmac26 / FEWD_Final-Project

General Assembly - Front-End Web Development course project
0 stars 0 forks source link

Password protected page #2

Open djmac26 opened 8 years ago

djmac26 commented 8 years ago

Hi Will @wmyers,

Just want to ask if you have any suggestion on how to create a passport protected website? I want to place the "Enter Password" when the user visited my site "Work" page.. I did some research and i found .htaccess and .htpasswd but not really sure how to use it.

Thank you Doty

wmyers commented 8 years ago

Hi Doty

This guide to .htaccess is quite good: http://www.htaccess-guide.com/

You need to be hosting your web site on an Apache server to use .htaccess. You can use .htaccess on WordPress: http://www.wpbeginner.com/beginners-guide/why-you-cant-find-htaccess-file-on-your-wordpress-site/

If you were implementing basic authentication in node JS then there is an example here: http://stackoverflow.com/questions/23616371/basic-http-authentication-with-node-and-express-4

Regards

Will