how to block IPs

I have server A that host bot domain1.com and domain2.com.

I want to block anyone that come from IP xx.xx.xx.xx to domain1.com, while still open for everyone to access domain 2.

It is possible using .htaccess? If it's, could you please give me some basic? Thank you for helping.

 

 

 

 

Top