icefog 发表于 2018-1-13 14:40:35

怎么设置网站只几个IP访问?

本帖最后由 the2ndface 于 2018-1-13 14:45 编辑

iptables -A INPUT -p tcp -s xx.xx.xx.xx --dport 80 -jACCEPT

the2ndface 发表于 2018-1-13 14:43:47

限制访问整个80端口服务使用iptables,限制访问特定目录使用web 服务器限制。
具体请百度。
页: [1]
查看完整版本: 怎么设置网站只几个IP访问?