.htaccess Block visitors by IP address – .htaccess December 22, 2011 Pramod T P Leave a comment Add the below given code in your .htaccess file order allow,deny deny from 112.1.11.22 allow from all