Xampp 在 ip 级别过滤页面访问
Xampp filter page access on ip level
我有一个在局域网上运行的本地网络网站,主要用于用户注册和批准,我需要为其他用户的特定 ip 制作用户注册页面,我需要向他们展示完整的网页,包括登录和批准。
192.168.0.1/regis.php
部分用户拥有特定ip只有他们可以访问此page.not批准
并且一些拥有另一个特定 ip 的用户可以访问所有包括 regis.php
您可以使用 Require 限制对资源的访问。
来自 Apache 文档:
The authorization providers implemented by mod_authz_host are
registered using the Require directive. The directive can be
referenced within a , , or section as
well as .htaccess files to control access to particular parts of the
server. Access can be controlled based on the client hostname or IP
address.
您可以在此处找到信息和示例:https://httpd.apache.org/docs/2.4/mod/mod_authz_host.html, https://httpd.apache.org/docs/2.4/howto/access.html, https://httpd.apache.org/docs/2.4/mod/core.html#location and https://httpd.apache.org/docs/2.4/mod/core.html#directory。
我有一个在局域网上运行的本地网络网站,主要用于用户注册和批准,我需要为其他用户的特定 ip 制作用户注册页面,我需要向他们展示完整的网页,包括登录和批准。
192.168.0.1/regis.php
部分用户拥有特定ip只有他们可以访问此page.not批准 并且一些拥有另一个特定 ip 的用户可以访问所有包括 regis.php
您可以使用 Require 限制对资源的访问。
来自 Apache 文档:
The authorization providers implemented by mod_authz_host are registered using the Require directive. The directive can be referenced within a , , or section as well as .htaccess files to control access to particular parts of the server. Access can be controlled based on the client hostname or IP address.
您可以在此处找到信息和示例:https://httpd.apache.org/docs/2.4/mod/mod_authz_host.html, https://httpd.apache.org/docs/2.4/howto/access.html, https://httpd.apache.org/docs/2.4/mod/core.html#location and https://httpd.apache.org/docs/2.4/mod/core.html#directory。