在.htaccess中添加:

Order allow,deny
allow from all
deny from 112.111.123.12