Guest User

Untitled

a guest
Apr 14th, 2026
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. function FindProxyForURL(url, host) {
  2.  
  3. // -------------------------------------------------------
  4. // Bypass rules - traffic sent DIRECT (not through Zscaler)
  5. // -------------------------------------------------------
  6.  
  7. // Bypass whatismyipaddress.com and all subdomains
  8. if (dnsDomainIs(host, ".whatismyipaddress.com"))
  9. return "DIRECT";
  10.  
  11. // Also catch the bare domain without a subdomain
  12. if (host == "whatismyipaddress.com")
  13. return "DIRECT";
  14. // -------------------------------------------------------
  15. // Default: send all other traffic through Zscaler
  16. // -------------------------------------------------------
  17. return "PROXY gateway.zscaler.net:80; PROXY gateway.zscaler.net:443; DIRECT";
  18. }
Advertisement
Add Comment
Please, Sign In to add comment