بله میشه

یکم خودتون هم سعی کنید و کدهای زیر رو هم ببنید که براتون میزارم
کد:
## USER IP BANNING
<Limit GET POST>
 order allow,deny
 deny from 42.12.5.34
 deny from 212.173.53.
 deny from 69.242.
 allow from all
</Limit>
با Htaccess هست .
کد:
 * 42.12.5.34 (Blocks a specific IP address)
  * 212.173.53. (Blocks ALL IPs within the range 212.173.53.xxx)
  * 69.242. (Blocks ALL IPs within the range 69.242.xxx.xxx)
  * 81.158.3 (Blocks ALL IPs within the range 81.158.3xx.xxx.xxx)