Is there a way to password protect HTML pages without using a server side language?

后端 未结 10 1608
情深已故
情深已故 2021-01-14 14:36

I have a series of interlinked web pages, and I want to restrict access to these pages by asking the user to provide a login and password. However, my hosting account curren

10条回答
  •  孤街浪徒
    2021-01-14 14:48

    There is no way to create a secure clientside script. If the user has access to it, it's insecure.

    If your host is running apache you can secure folders using .htaccess, on IIS you can do the same through directory security.

提交回复
热议问题