Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 874157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:03:45+00:00 2026-05-15T11:03:45+00:00

In Firefox internet connection is made through a proxy auto configuration file something.pac .

  • 0

In Firefox internet connection is made through a proxy auto configuration file something.pac.

How do I know for a certain URL which proxy server is being used?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T11:03:46+00:00Added an answer on May 15, 2026 at 11:03 am

    .pac file is just an ECMAscript – aka JavaScript. Check out the wikipedia article on the file format.

    If you copy the PAC code you can process it to see what proxy is being used based on the target url. If you are feeling fancy, you can wrap the script into a web page (locally) to create a tool to evaluate locally.

    Edit:

    As an alternative to the method I started recommending, you might check out PACTester, available on Google Code. This will allow you to quickly test a range of options.

    If you have .Net available and are interested in playing with C# then you can check out this article on MSDN which has code you can use in a similar fashion to the above.

    To expand on the original method outlined above, there are a number of functions which may (and typically are) provided by the host browser. The basic function which must be implemented in a pac file is FindProxyForUrl(). This accepts two parameters: the url and the host (the host derived from the name of url). The “provided” functions include: isInNet(), localHostOrDomainIs(), isPlainHostName(), isResolvable(), etc.

    If you are working in a Microsoft environment then you can check out this page on Technet which describes the .pac format with some useful examples.

    Per the Microsoft documentation for isInNet():

    The isInNet(host, pattern, mask) function returns TRUE if the host IP address matches the specified pattern. The mask indicates which part of the IP address to match (255=match, 0=ignore).

    If you want to get technical, here is the Mozilla source code for the implementation of proxy auto-config related services. It specifies the JS code for isInNet() as:

    200 function isInNet(ipaddr, pattern, maskstr) {
    201     var test = /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/(ipaddr);
    202     if (test == null) {
    203         ipaddr = dnsResolve(ipaddr);
    204         if (ipaddr == null)
    205             return false;
    206     } else if (test[1] > 255 || test[2] > 255 ||
    207                test[3] > 255 || test[4] > 255) {
    208         return false;    // not an IP address
    209     }
    210     var host = convert_addr(ipaddr);
    211     var pat  = convert_addr(pattern);
    212     var mask = convert_addr(maskstr);
    213     return ((host & mask) == (pat & mask));
    214     
    215 }
    

    Hope that helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there any firefox plugin to emulate slow internet connection or emulate unstable internet
After switching from firefox testing to internet explorer testing, some elements couldn't be found
The following code works in Firefox but in Internet Explorer it returns error Object
Firefox: http://example.com/about/#anchor -> http://www.example.com/about/#anchor Internet Explorer 6-8: http://example.com/about/#anchor -> http://www.example.com/about/ Why is the anchor
My website looks good in Internet Explorer 8 and Firefox but the part of
In Firefox it works, in my Internet Explorer 6 or 7 it doesn't: <html>
The following links do not work on Firefox nor Chrome only on Internet Explorer
I'm attempting to port over an Internet Explorer plugin to Firefox, but I'm not
I need to change the firefox window title like I would do for internet
My dynatree works fine in Firefox. In internet explorer 8 it gives me an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.