Trustwave and Cybereason Merge to Form Global MDR Powerhouse for Unparalleled Cybersecurity Value. Learn More

Trustwave and Cybereason Merge to Form Global MDR Powerhouse for Unparalleled Cybersecurity Value. Learn More

Services
Managed Detection & Response

Eliminate active threats with 24/7 threat detection, investigation, and response.

Co-Managed SOC (SIEM)

Maximize your SIEM investment, stop alert fatigue, and enhance your team with hybrid security operations support.

Advisory & Diagnostics

Advance your cybersecurity program and get expert guidance where you need it most.

Penetration Testing

Test your physical locations and IT infrastructure to shore up weaknesses before exploitation.

Database Security

Prevent unauthorized access and exceed compliance requirements.

Email Security

Stop email threats others miss and secure your organization against the #1 ransomware attack vector.

Digital Forensics & Incident Response

Prepare for the inevitable with 24/7 global breach response in-region and available on-site.

Firewall & Technology Management

Mitigate risk of a cyberattack with 24/7 incident and health monitoring and the latest threat intelligence.

Solutions
BY TOPIC
Microsoft Security
Unlock the full power of Microsoft Security
Offensive Security
Solutions to maximize your security ROI
Rapidly Secure New Environments
Security for rapid response situations
Securing the Cloud
Safely navigate and stay protected
Securing the IoT Landscape
Test, monitor and secure network objects
Why Trustwave
About Us
Awards and Accolades
Trustwave SpiderLabs Team
Trustwave Fusion Security Operations Platform
Trustwave Security Colony
Partners
Technology Alliance Partners
Key alliances who align and support our ecosystem of security offerings
Trustwave PartnerOne Program
Join forces with Trustwave to protect against the most advance cybersecurity threats
Loading...
Loading...

FAQ: How to use Automatic Configuration Scripts for Proxy Settings

Expand / Collapse


  • Question
    How does one use the Automatic Configuration Scripts for Proxy settings?

  • Answer

    It may sometimes be necessary for the browser to pick up proxy settings from a configuration file, which is a simple text file saved as the PROXY.PAC file
    This file, as well as holding proxy settings can also be used for other situations, such as as load-balancing, fault tolerance, etc.
    The example shown here is for the basic concept.

    There are many modifications that may be applied for the PROXY.PAC file.
    In this following example multiple URLs are defined in order to bypass the proxy, and all the other URLs are defined to get through the proxy.

    function FindProxyForURL(url, host)
    {
       var proxy_yes = "PROXY 192.168.100.29:8080";
       var proxy_no = "DIRECT";
       if (shExpMatch(url, "http://www.finjan.com*")) { return proxy_no; }
       if (shExpMatch(url, "http://www.mycompany.com*")) { return proxy_no; }
       // Proxy anything else
       return proxy_yes;   
    }

    Here are examples for configuring these settings on the 3 most common browsers. Once the configuration file is created, follow the procedures below for each of the broswers:

    Netscape Navigator:

    1. Copy the PROXY.PAC file to the C:\directory, or other directory of your choice.
    2. In the browser proxy settings, configure Automatic Proxy Configuration to
              file:///c|/proxy.pac
    3. Click on Reload button.



    Internet Explorer

    1. Copy the PROXY.PAC file to the C:\directory, or other directory of your choice.
    2. In the browser proxy settings, configure Use Automatic Configuration Script URL to
           file://c:/proxy.pac



    Mozilla FireFox  

    1. Copy the PROXY.PAC file to the C:\directory, or other directory of your choice.
    2. In the browser proxy settings, configure Automatic proxy Configuration URL to
           file:///c:/proxy.pac
    3. Click on Reload button.





  • This article applies to:
    NG 1000
    NG 5000
    NG 8000
    This article was previously published as:
    Finjan KB 1163

    To contact Trustwave about this article or to request support:


    Rate this Article:
         

    Add Your Comments


    Comment submission is disabled for anonymous users.
    Please send feedback to Trustwave Technical Support or the Webmaster
    .