linux服务器(nginx或者apache)限制IP访问的方法
nginx环境下新建denyip.conf文件,在服务器/usr/local/nginx/conf目录下的nginx.conf里面,加上include denyip.conf;将屏蔽的IP放到denyip.conf里面deny 110.83.0.0/16; deny 110.84.111.0/24; deny 110.85.124.56;保存之后将denyip.conf上传到/usr/local/ngin...
nginx环境下新建denyip.conf文件,在服务器/usr/local/nginx/conf目录下的nginx.conf里面,加上include denyip.conf;将屏蔽的IP放到denyip.conf里面deny 110.83.0.0/16; deny 110.84.111.0/24; deny 110.85.124.56;保存之后将denyip.conf上传到/usr/local/ngin...