🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[TOC] ## 简单版本 在 .htaccess 不需要写在xml 中 ``` Order Allow,Deny Allow from all Deny from 192.168.0.203 192.168.0.204 ``` ## ip限制 在httpd中(重启) `RewriteMap hosts-deny txt:D:/wamp/hosts.deny` 在hosts-deny中 ` 192.163.3.68 deny` 在.htaccess ``` RewriteEngine on RewriteCond %{hosts-deny:%{REMOVE_ADDR}|NOTFOUND} deny [OR] RewriteCond %{hosts-deny:%{HTTP_HOST}|NOTFOUND} deny RewriteRule ^ - [F] ```