In some deployments, Verax Protect requires redirecting AI tool domains to the Verax server using the system hosts file.
⚠️ Editing the hosts file requires administrator/root privileges.
Before proceeding, retrieve the required domain mappings from:
Verax Console → Settings → Traffic Redirect → Web Proxy
Copy the entries exactly as shown in your console.
Windows
Hosts File Location
C:\Windows\System32\drivers\etc\hostsStep 1 – Open Notepad as Administrator
Click Start
Type Notepad
Right-click Notepad
Select Run as administrator
Click Yes on the UAC prompt
Step 2 – Open the Hosts File
In Notepad, click File → Open
Navigate to:
C:\Windows\System32\drivers\etc\In the bottom-right dropdown, change:
Text Documents (*.txt) → All Files
Select the file named hosts
Click Open
Step 3 – Add Verax Entries
Scroll to the bottom of the file and paste the entries copied from:
Verax Console → Settings → Traffic Redirect → Web Proxy
Do not modify the domain names unless instructed.
Step 4 – Save the File
Click File → Save
If you receive a permission error, ensure Notepad was opened as Administrator.
Step 5 – Flush DNS Cache (Recommended)
Open Command Prompt as Administrator:
Click Start
Type cmd
Right-click Command Prompt
Select Run as administrator
Run:
ipconfig /flushdnsYou should see:
Successfully flushed the DNS Resolver Cache.macOS
Hosts File Location
/etc/hostsStep 1 – Open Terminal
Press:
Cmd + SpaceSearch for Terminal and open it.
Step 2 – Edit the Hosts File
Run:
sudo nano /etc/hostsEnter your administrator password when prompted.
(Note: The password will not be visible as you type.)
Step 3 – Add Verax Entries
Scroll to the bottom of the file.
Paste the entries copied from:
Verax Console → Settings → Traffic Redirect → Web Proxy
Step 4 – Save and Exit
Press:
Ctrl + O → press Enter (save)
Ctrl + X (exit)
Step 5 – Flush DNS Cache
Run:
sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponderNo output is expected.
Linux
Hosts File Location
/etc/hostsStep 1 – Open Terminal
Step 2 – Edit the Hosts File
Run:
sudo nano /etc/hosts(You may use vim instead of nano if preferred.)
Enter your root password when prompted.
Step 3 – Add Verax Entries
Scroll to the bottom of the file and paste the entries copied from:
Verax Console → Settings → Traffic Redirect → Web Proxy
Step 4 – Save and Exit
For nano:
Ctrl + O → Enter
Ctrl + X
Step 5 – Flush DNS Cache (If Required)
Depending on distribution:
For systemd-based systems:
sudo systemd-resolve --flush-cachesOr restart networking:
sudo systemctl restart NetworkManagerVerification
After completing the steps:
Open a browser.
Access one of the redirected domains.
Verify traffic is being routed through Verax (as shown in your Interactions dashboard).
Important Notes
Always copy the entries directly from your Verax console.
Incorrect entries may break access to AI tools.
For enterprise environments, consider managing hosts entries via:
Group Policy (Windows)
Intune / JAMF (macOS)
Configuration management tools (Linux)