kill all PID of an IP

Is there a script or command to kill all PID associated with a certain IP, for example, sometimes I want to kill all apache connections coming from certain IPs.

 

 

 

 

Top