.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 Share this: Click to share on X (Opens in new window) X Click to share on Facebook (Opens in new window) Facebook Like Loading...