Hostmonster - 403 Permission denied (htaccess)

September 8, 2014

Are you getting the error “403 Permission denied” when trying to access your website from a single location?

Try the following:

  • Go to Google and search for “what is my ip”

  • Get the ip returned by your search query

  • Access your cpanel and go to your home or “public_html” folder

  • Backup the .htaccess file to ,htaccess_old

  • Open .htaccess

  • Search for any entry related to your ip (search for a few numbers only if the full ip is not found)

  • Comment with the character “#” any line blocking your ip

  • Save the file

In my case i had to comment the following lines:
_        # SetEnvIF REMOTE_ADDR “^xx\.xxx\.xxx\.xxx$” DenyAccess_
_        # SetEnvIF X-FORWARDED-FOR “^xx\.xxx\.xxx\.xxx$” DenyAccess_
_        # SetEnvIF X-CLUSTER-CLIENT-IP “^xx\.xxx\.xxx\.xxx” DenyAccess_
_        # deny from