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

后端 未结 7 1123
庸人自扰
庸人自扰 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

    You can block all IP to go in admin panel except your admins IPs Write something like this:

    order allow,deny
    deny from all
    allow from {your IP}
    allow from {your other admin's IP}
    

    This should be work

提交回复
热议问题