Hack Forums
How do I password protect my website? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Webmasters (https://hackforums.net/forumdisplay.php?fid=141)
+---- Forum: Website Construction (https://hackforums.net/forumdisplay.php?fid=50)
+---- Thread: How do I password protect my website? (/showthread.php?tid=5855821)



How do I password protect my website? - Fear - Jun 29, 2018

Let's say that I have website example.com and when people go there it asks for a password and when you type it you get redirected to example.com/private so how can I do this?


RE: How do I password protect my website? - ✔ Soufian ✔ - Jun 29, 2018

Did you even take the time to Google it up before asking here?
https://www.formget.com/login-form-in-php/


RE: How do I password protect my website? - tweety - Jun 29, 2018

can literally directory lock


RE: How do I password protect my website? - Fear - Jun 29, 2018

(Jun 29, 2018 04:42 PM)✔ Soufian ✔ Wrote:  Did you even take the time to Google it up before asking here?
https://www.formget.com/login-form-in-php/

I have no idea what that means (I don't know much about php) so I just need simple script to do this with password only option.




RE: How do I password protect my website? - Nov - Jul 1, 2018

There are many scripts available. Look on https://codecanyon.net/


RE: How do I password protect my website? - Mr Fox - Jul 1, 2018

just use a session variable in PHP with either a preset password on the backend or link it to a mysql db


RE: How do I password protect my website? - tweety - Jul 1, 2018

im assuming you have a cpanel

[Image: setup-password-protect-directories-cpane...=800%2C575]