Hostmonster - 403 Permission denied (htaccess)

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 xx.xxx.xxx.xxx

Comments

Popular posts from this blog

Oracle - duplicate fields in RECORD,TABLE or argument list are not permitted

Oracle - ORA-29282: invalid file ID, ORA-06512: at "SYS.UTL_FILE"