0

I'd like to password protect a particular webpage on my site using PHP. Similarly can I protect a group of pages, say in a subdirectory using PHP password protection? I don't need extreme security: i.e. no credit card data. Thus I don't need to store the passwords in a separate external file, storage on the PHP file should be okay.

This question was asked previously and a really good answer was posted. I bookmarked it yesterday but can no longer find it.

My website is written in HTML, thus no CMS like Wix or WordPress. I'd also prefer not to try to use the .htaccess file for this purpose. The whole website is NOT to be password-protected, just a couple of pages.

I haven't tried anything yet for this issue. I did use PHP from my Google v2 Recapcha to add a 2-question quiz to my email contact form. This works really well but is a different solution. The quiz (with answers posted on the website!) cuts out 100% of SPAM, which indicates that all the SPAM is coming from bots.

0 Answers0