How to Configure Wpad.Dat to Bypass a Local Address

Written by joshua laud
  • Share
  • Tweet
  • Share
  • Email

The Web Proxy Autodiscovery Protocol (WPAD) is a protocol used to locate Web URLS when you're browsing the Internet. The settings for a WPAD are stored in a wpad.dat file, which is a basic text file saved with a .dat extension. Wpad.dat files can be configured in Notepad, which is installed on all Windows machines. Wpad.dat files are the same as proxy.pac settings files, which are used by proxy servers as a bypass tool. Therefore, you can easily configure one to bypass a local address.

Skill level:
Easy

Other People Are Reading

Instructions

  1. 1

    Click "Start," type "notepad" and press "Enter."

  2. 2

    Type the following code into Notepad:

    function FindProxyForURL(url, host)

    {

    if (isInNet(myIpAddress(), "192.168.1.1", "255.255.255.0"))

    return "PROXY 192.168.1.2:8080";

    else

    return "DIRECT";

    }

  3. 3

    Replace the IP addresses listed, depending on your purpose. In the example in Step 2, the proxy checks if the local address is "192.168.1.1" in the "255.255.255.0" subnet and, if it is, redirects it to "192.168.1.2." Otherwise, it allows it to continue.

  4. 4

    Click "File" and "Save." Click the "File Type" drop-down, and click "All Files." Save the file as "wpad.dat" without quotes.

Don't Miss

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.