IP banning using .htacess

Hello, I wanted to ask the tech gurus how to set up .htacess to ban an IP address. I was sent this piece of code but I could not make it work:

Order allow,deny
Allow from all
Deny <ip address here>

Can I use wildcard on IPs that I ban like 63.30.* ?

Please advice. Thank you!

 

 

 

 

Top