Need a geek? Geeks to Go offers free, quality tech support -- in terms anyone can understand. Volunteers are waiting to help, friendly, technology experts who have knowledge to share, and enjoy helping others. Feel free to browse the site as a guest. However, you must log in to reply to existing topics, or to start a new topic of your own. Other benefits of joining include richer forum features, and removal of all advertising. Learn more in our Welcome Guide Infected? Malware and Spyware Cleaning Guide. What are you waiting for? Click here to join for free today!
 
Reply to this topicStart new topic
Proxy.PAC, guess this falls under webdesign
dsenette
post Jun 25 2007, 10:51 AM
Post #1


Ruler of Omicron Persei 8
Group Icon
Posts: 22,748
From: Knoxvegas
OS: 3.1, 95, 98SE, xp, 2000, NT4, 2003 Standard Edition, linux (various flavors)
MVP


i guess this COULD go in networking...but....you guys might have better luck with it

i'm trying to create a PAC file (Proxy Automatic Configuration)...so that i can instate a little automatic proxy redundancy as well as automatic configuration (so i don't have to walk around as much when there's a bunch of goobers visiting work)

i've found a lot of good resources on PAC files...but it's all greek to me as i only know two things about JS....diddely and squat

here's my basic PAC (coincidentally...the only one i've been able to get working)

CODE
function FindProxyForURL(url, host)
    {
        if (isPlainHostName(host) ||
            dnsDomainIs(host, ".<MyDomain>"))
            return "DIRECT";
        else
            return "PROXY <WebFilterDNSNameAndPort>; <SecondaryProxyDNSNameAndPort>; DIRECT";
    }


i can direct my IE to this PAC file for configuration then test at http://www.proxyserverprivacy.com/adv-free...-detector.shtml and it will show that i am indeed using the first proxy in the list (after the return "proxy" deal...) and if i replace the "mydomain" with the domain of that testing site (proxyserverprivacy.com) then it will show that i am indeed not using the proxy...so i know it's reading that line and parsing the logic

however...if i add any more domain names in the first section (which is supposed to be a list of things that can be accessed directly instead of via proxy) then the tests fail and the proxy isn't being applied....i assume this is because i don't know anything about how to write JS...would i need to put more IF statements in there? or maybe an or? does JS do or statements? like if the domain matches this, OR, this OR this then do this else do the other thing?

any help would be appreciated
Go to the top of the page
 
+Quote Post
I.D.S. Administr...
post Jul 5 2007, 11:49 PM
Post #2


Member
***
Posts: 100
OS: xubuntu, windows xp pro



I am having the same troubles, however I am using this as a.. Firewall if you will; something that comes before access to my web of servers (each server has a random/hidden IP so that hackers have a harder time figuring out how to mess with the servers as a whole. Then again, there is free software for private use (unfortunately for me, the keyword is "private"). I haven't found any completely free software in this area. And if you are worried about security, then using javascript on public access most likely isn't a great idea (I uploaded my scripts and what not to my router).

My problem is when I turn this script on (that decides what random IP to say the server is on for each individual user) it will actually direct the user to that IP address through my server, so basically I become a proxy.

QUOTE(dsenette @ Jun 25 2007, 11:51 AM) [snapback]995239[/snapback]
i guess this COULD go in networking...but....you guys might have better luck with it

i'm trying to create a PAC file (Proxy Automatic Configuration)...so that i can instate a little automatic proxy redundancy as well as automatic configuration (so i don't have to walk around as much when there's a bunch of goobers visiting work)

i've found a lot of good resources on PAC files...but it's all greek to me as i only know two things about JS....diddely and squat

here's my basic PAC (coincidentally...the only one i've been able to get working)

CODE
function FindProxyForURL(url, host)
    {
        if (isPlainHostName(host) ||
            dnsDomainIs(host, ".<MyDomain>"))
            return "DIRECT";
        else
            return "PROXY <WebFilterDNSNameAndPort>; <SecondaryProxyDNSNameAndPort>; DIRECT";
    }


i can direct my IE to this PAC file for configuration then test at http://www.proxyserverprivacy.com/adv-free...-detector.shtml and it will show that i am indeed using the first proxy in the list (after the return "proxy" deal...) and if i replace the "mydomain" with the domain of that testing site (proxyserverprivacy.com) then it will show that i am indeed not using the proxy...so i know it's reading that line and parsing the logic

however...if i add any more domain names in the first section (which is supposed to be a list of things that can be accessed directly instead of via proxy) then the tests fail and the proxy isn't being applied....i assume this is because i don't know anything about how to write JS...would i need to put more IF statements in there? or maybe an or? does JS do or statements? like if the domain matches this, OR, this OR this then do this else do the other thing?

any help would be appreciated

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies / Views Topic Information
No New Posts   1 / 368 16th October 2009 - 08:02 AM
isowipe started - last by phoenix rising
No New Posts   0 / 60 17th October 2009 - 12:33 AM
runaway started - last by runaway
No New Posts   2 / 25 Today, 09:39 AM
phoenix rising started - last by phoenix rising
No New Posts   0 / 6 Today, 05:26 PM
phoenix rising started - last by phoenix rising

RSS Time is now: 20th November 2009 - 07:04 PM

Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk. All trademarks mentioned on this page are the property of their respective owners.

© Geeks to Go, Inc. | All Rights Reserved | Privacy Policy | Advertising