我正在测试一个php / js聊天应用程序,该应用程序在public_html根子文件夹中安装了管理仪表板。
聊天框通过嵌入式javascript显示在单独的域中。
我已使用htaccess文件保护应用安装,以限制对两个IP地址的访问:
<Directory /hidedirectory>
options -Indexes
Order Deny,Allow
Deny from all
Allow from xx.xxx.xx.xx,xx.xxx.xxx.xxx
</Directory>
但是,这会停止在用户浏览器中显示的应用,除非他们使用允许的IP地址。
有人可以建议我如何限制管理员访问但允许应用程序在外部运行吗?