order allow,deny allow from all # deny most common except .php # disable access of .htaccess from a browser order allow,deny deny from all satisfy all # disable access of config.php from a browser deny from 65.19.174 deny from locators.com # use custom error pages if you wish ErrorDocument 400 /portal/error.php ErrorDocument 401 /portal/error.php ErrorDocument 403 /portal/error.php ErrorDocument 404 /portal/error.php ErrorDocument 500 /portal/error.php # disallow index viewing (like ftp) of directory Options -Indexes # for hosts that don't allow the above, we won't give people anything to look at # # IndexIgnore * # AddDefaultCharset utf-8 RewriteEngine on RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]