我正在使用Apache,在Linux上托pipe。
/sbin/iptables -I INPUT -s ABCD -j DROP
womble的回答将阻止这些用户甚至向您的服务器发送请求。 如果你想让他们看到403 Access Denied Apache错误页面,把它放在.htaccess文件中:
403 Access Denied
.htaccess
order allow,deny deny from 192.168.44.201 allow from all