我正在尝试使用这段代码将所有后端 url 过滤到 httpd.conf 文件中的一个 IP:
<Location /admin>
Order deny,allow
Deny from all
Allow from 100.x.xxx.xxx
</Location>
Run Code Online (Sandbox Code Playgroud)
这个很好用。但是我找不到对 /?q=admin 执行相同操作的方法。
<Location /?q=admin>
Order deny,allow
Deny from all
Allow from 100.x.xxx.xxx
</Location>
Run Code Online (Sandbox Code Playgroud)
我是否需要一些带有反斜杠的正则表达式来转义某些字符?
users ×1