How to Test the Silverline Proxy Using 'hosts' File on Windows PC

Proxy / App Configuration Steps

  1. Configure Proxies / Apps in Portal
  2. Test & Verify Proxies
    • How To Test The Silverline Proxy Using 'Hosts' File On Windows PC
  3. Configure On-Premises Set-up




Before you switch over your public DNS to reflect the Silverline Front End IP address which represents your site, you can mimic the behavior using a Windows PC (or any other client) with a modified Hosts file.



  • Windows 7 PC.
  • Location of ‘hosts’ differs between Windows versions.

Note on Linux and Macs

  • Similar process for Linux and Mac OSX machines, however the format of the Hosts file differs.
  • Path of ‘hosts’ in Linux/Mac OSX is usually [/etc/hosts].


Steps for Testing your Site using a Windows PC

Once your proxy is provisioned and deployed, obtain the Silverline Virtual-IP from Portal (also known as the Front-End) using the following steps:

1. Navigate to Config > Proxy Configuration > Proxy Management


2. Locate the Front End IPs for your proxies under the Network column, shown inside the red box below:



3. Next, press the Windows key (or go to Start on the Desktop), and type “Notepad.exe” into the Search Field.

Right-Click on the Notepad application and choose to “Run As Administrator”. This possibly requires you to approve the action through UAC, so click “Yes” when prompted. 



4. Once in Notepad (as Admin):

  • Go to File > Open
  • Navigate to C:/Windows/System32/drivers/etc/.
  • Be sure to use the drop-down provided to view “All Files (*.*)” instead of only “Text Files (*.txt)”, because the Hosts file doesn’t have a .txt extension:


5. This is what your Hosts file will likely contain:windows4.png


6. Now, add the Silverline proxy Front End IP in the left-hand column

- Press [TAB] twice and add the host-name URL (such as for the site in question in the right-hand column, as below. 

- Once the entry has been made, click File > Save.



7. Test the Hosts file entry by opening a CMD prompt in Windows, and pinging the URL you entered into the Hosts file: windows6.png

You can now navigate to (or or any other subdomain) and your PC will browse to the Silverline-protected site, while any other clients on the Internet will still be navigating to the site without Silverline in-line.

Once you are satisfied that your site and proxy are configured correctly, you may update your DNS settings and revert your PC's host file by removing the Silverline entry.


Application proxy

In this case you will see Assigned DNS Name : <proxyid>.<custid> on proxy tab.

To aquire assigned IP you have to perform DNS query with dig or nslookup command.

Bear in mind that IP may change and this is temporary solution.


Return to: Test & Verify Proxies 


Q&A: What Data Does Silverline Need for WAF Proxy Troubleshooting?

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request