Return to Snippet

Revision: 32128
at September 19, 2010 03:04 by Orlandoo


Initial Code
ErrorDocument 403 http://www.domainname.com
Order deny,allow
Deny from all
Allow from 124.34.48.165
Allow from 102.54.68.123

Initial URL

                                

Initial Description
If for some reason you would want to deny everyone or allow only a specific group of IP addresses to access your website, add the following code to your .htaccess file:

Initial Title
Redirect Everyone Except Specified IPs

Initial Tags
htaccess

Initial Language
Apache