How to prevent access of admin pages by knowing the admin page url?

后端 未结 7 1136
庸人自扰
庸人自扰 2020-12-17 07:52

If someone knows my url of the admin page such as www.example.com/admin.php, then they will easily access the page by directly accesing that url. How to restrict this. Pleas

7条回答
  •  别那么骄傲
    2020-12-17 08:13

    If you have cPanel (or a similar control panel) access, you can easily create password protected directories as well. This method uses htpasswd and htaccess files. If you set it up this way, anyone trying to access the protected directory will have to enter a user/pass. The only down side to it is that your admin files need to be in a directory of their own.

提交回复
热议问题