If you are looking to block some of your visitors by their IP address than you can do this task by using .htaccess or .php file.