The following code in your .htaccess should work withe the latest version of Apache order deny,allow deny from all allow from 123.123.123.123 Code (markup):