Blocking IP using .htaccess file

In case you want to block a certain IP address from entering your site, lets say you found a hacker or injector, you should use the .htaccess file to deny them from ever trying again.
To block an IP address from entering your site, edit the .htaccess file (you should find it in the root folder of your site).
Add this code:
order allow,deny
allow from all
deny from 196.1.176.195
After the "deny from" write down the IP you want to block. you can add as many lines as you like one below the other to block more IP's.