Blocking users by IP in .htaccess file

this is good if you want to block specific users via their ip.

Add this to your .htaccess file


order allow,deny
deny from 123.45.6.7
deny from 012.34.5.
allow from all