1. Home
  2. Docs
  3. Website Firewall
  4. Troubleshooting
  5. Bypassing Firewall for Testing

Bypassing Firewall for Testing

For testing or development purposes, you can configure your operational system to use the hosting IP address when acessing your website.

First, you must find your hosting IP address by accessing the main page of your domain\’s dashboard:


Editing the \’hosts\’ file

If you are using Microsoft® Windows, press the Windows key, search for "notepad", right-click Notepad on the option "Run as administrator". Once the Notepad is open, go to File -> Open and open the "c:\windows\system32\drivers\etc\hosts" file. The "c:\ disk could be other letter, just make sure you\’re acessing the Windows root folder.

If you are using an Unix-like system, run your favorite text editor as root by using "sudo" command and open the "/etc/hosts" file.

Inside the file, at the very end, add a line following this structure:

xx.xx.xx.xx  www.example.com example.com

Replace "xx.xx.xx.xx" with your Hosting IP address and change "example.com" to your domain. Save the file and you should be able to view your website directly from your hosting server.

For Microsoft® Windows users, you may also need to search for "cmd.exe", right-click, "Run as administrator" and then insert "ipconfig /flushdns" on the Prompt so the changes takes effect.

Please, use the incognito mode of the browser to make sure it didn\’t cached the DNS.

403 Error When Bypassing

If you\’ve implemented Firewall Bypass Prevention, then you will need to add your own IP address (which can be found here to the FileMatch directive:

# BEGIN Sucuri Firewall Bypass Prevention
<FilesMatch ".*">
    Order deny,allow
    Deny from all
    Allow from
    Allow from
    Allow from 2a02:fe80::/29
    Allow from
    Allow from INSERT YOUR IP HERE
# END Sucuri Firewall Bypass Prevention
Was this article helpful to you?