Jump to content

Recommended Posts

Posted
7 hours ago, VistaLover said:

End of off-topic :P ...

Thanks again for sharing further, detailed information! And as this thread is about proxies, you are absolutely on-topic:P


Posted
20 hours ago, VistaLover said:

2. Are you concerned that the browser will load HTTPS sites under plain HTTP (and you're afraid sensitive/private info of yours will be sniffed?) - it's my understanding that a secure connection will either succeed or fail altogether...

 

Yes, I am concerned about the security of the data.
I only have two websites so far where the encryption doesn't work.
I don't have to “redirect” all websites via the proxy.

Thank you for the information regarding the PAC.

Posted (edited)

I have now integrated the proxy.pac in IE8 and it also works in IE8.
In 360Chrome I have activated “use IE proxy”.
But it does not work in 360Chrome.

If I set a fixed proxy in IE8, this is also adopted in 360Chrome.

The proxy is not used. What am I doing wrong?

function FindProxyForURL(url, host) {
if (shExpMatch(host, "*.example.com")) {
 return "PROXY localhost:8079";
 }
  else 
    {
     return "DIRECT"; 
    }
 }

 

Edited by Anbima
Posted (edited)
3 hours ago, Anbima said:

I have now integrated the proxy.pac in IE8 and it also works in IE8.
In 360Chrome I have activated “use IE proxy”.
But it does not work in 360Chrome.

The proxy is not used. What am I doing wrong?

function FindProxyForURL(url, host) {
if (shExpMatch(host, "*.example.com")) {
 return "PROXY localhost:8079";
 }
  else 
    {
     return "DIRECT"; 
    }
 }

 

Check the correct URL of the website which is supposed to use the local proxy! It should be example.com for testing and not *.example.com. But in the end, I don't understand the whole effort for just two websites. It would be easier to use a proxy extension to switch from the direct connection to the local proxy or vice versa whenever necessary. :whistle:

Edited by AstroSkipper
Correction
Posted
8 minutes ago, AstroSkipper said:

You have to change PROXY to HTTPS. And check the correct URL of the website which is supposed to use the local proxy! It should be example.com for testing and not *.example.com. But in the end, I don't understand the whole effort for just two websites. It would be easier to use a proxy extension to switch from the direct connection to the local proxy or vice versa whenever necessary. :whistle:

With HTTPS and example.com it does not work in IE8 either.
Exactly as I have done it, it works in IE8. And it should also be transferred to 360Chrom if I have set "use IE proxy".
I would like to save myself additional extensions if there is another "in-house" option.

And there will certainly be more websites added in the future, which I can then simply add to.
Then everything will be automated.

Does anyone have it running with 360Chrome?

Posted (edited)

And @Anbima, IE8 is very old. I wouldn't implement a PAC file there. As @VistaLover already explained, IE8 has poor support when it comes to PAC files loading from disk. Install instead a proxy extension with PAC scripts support in 360Chrome as this browser doesn't seem to natively support it any longer. For example, this one: https://chromewebstore.google.com/detail/proxy-switcher-and-manage/onnfghpihccifgojkpnnncpagjcdbjod, and there are others, too.

Edited by AstroSkipper
Update of content
Posted (edited)
2 hours ago, AstroSkipper said:

And @Anbima, IE8 is very old. I wouldn't implement a PAC file there. As @VistaLover already explained, IE8 has poor support when it comes to PAC files loading from disk. Install instead a proxy extension with PAC scripts support in 360Chrome as this browser doesn't seem to natively support it any longer. For example, this one: https://chromewebstore.google.com/detail/proxy-switcher-and-manage/onnfghpihccifgojkpnnncpagjcdbjod, and there are others, too.

Proxy Switcher and Manager 0.5.0 is the last compatible to 360Chrome due to the manifest change from 2 to 3 and works great. I tested Direct, Manual Proxy (set here the local proxy 127.0.0.1:8079) and PAC Script, and all worked as it should. So, a working PAC script (not a PAC file but a PAC script under the section Inline) can be inserted directly in 360Chrome. No need to do that in IE8 and no need to activate ProxHTTPSProxy in the system proxy settings of IE8 by inserting 127.0.0.1:8079 there. Simply call up ProxHTTPSProxy.EXE directly from the main directory of my package instead of StartProxy.exe! And that means by using this extension you can also use @cmalex's ProxyMII if you prefer a pure proxy without any comfort. BTW, all that was done in 360Chrome in a few minutes. :P

Edited by AstroSkipper
Update of content
Posted (edited)
On 5/19/2024 at 9:46 PM, AstroSkipper said:

You have to change PROXY to HTTPS.

On 5/19/2024 at 9:57 PM, Anbima said:

With HTTPS and example.com it does not work in IE8 either.
Exactly as I have done it, it works in IE8.

... Apologies are in order :blushing: , it appears to be a "mea culpa" case; I have edited my original post accordingly :whistle:

On 5/18/2024 at 10:50 PM, VistaLover said:

EDIT/CORRECTION: ProxyMII (and similar projects based on Proxomitron) actually uses two local proxies (Rear+Front); client apps (e.g. browser) connect directly to the FrontServer (localhost:8079), which is plain HTTP, while the RearServer (localhost:8081) is the one facing the web; thus, my initial advice was wrong :blushing: ; "PROXY localhost:8079" must indeed be used inside a PAC implementation - apologies for any inconvenience, "errare humanum est"...

Edited by VistaLover
Posted (edited)
2 hours ago, VistaLover said:

... Apologies are in order, it appears to be a "mea culpa" case; I have edited my original post accordingly :whistle::

Yep! I noticed that too during my tests. I will correct my post accordingly. Here is my working script for passing only example.com to the local proxy:

function FindProxyForURL(url, host) {
if (shExpMatch(host, "example.com")) {
 return "PROXY 127.0.0.1:8079";
 }
  else 
    {
     return "DIRECT"; 
    }
 }

This script can be enhanced to pass more than only one URL to the local proxy, of course.

5 hours ago, Anbima said:

Does anyone have it running with 360Chrome?

So, your question has to be answered with yes. It's me. :P

Edited by AstroSkipper
Update of content
Posted (edited)
On 5/19/2024 at 9:57 PM, Anbima said:

Does anyone have it running with 360Chrome?

... If you don't want to use a dedicated extension (and I simply find you're just being obstinate :rolleyes: without a reason), I'll point you again to: 

https://issues.chromium.org/issues/40574814#comment23

Quote

(4) Convert the file:// URL to a data: URL
For instance:
 $ google-chrome --proxy-pac-url='data:application/x-javascript-config;base64,'$(base64 -w0 /path/to/pac/script)

For a PAC script like the one below: 

function FindProxyForURL(url, host) {
 if (shExpMatch(host, "example.com")) {
 return "PROXY localhost:8079";
 }
}

go to an online base64 encoder and the result you'll get is the string: 

ZnVuY3Rpb24gRmluZFByb3h5Rm9yVVJMKHVybCwgaG9zdCkgewogaWYgKHNoRXhwTWF0Y2goaG9zdCwgImV4YW1wbGUuY29tIikpIHsKIHJldHVybiAiUFJPWFkgbG9jYWxob3N0OjgwNzkiOwogfQp9

Then, you should add to whatever 360 Loader/launcher you're using below cmdline parameter

 --proxy-pac-url="data:application/x-javascript-config;base64,"ZnVuY3Rpb24gRmluZFByb3h5Rm9yVVJMKHVybCwgaG9zdCkgewogaWYgKHNoRXhwTWF0Y2goaG9zdCwgImV4YW1wbGUuY29tIikpIHsKIHJldHVybiAiUFJPWFkgbG9jYWxob3N0OjgwNzkiOwogfQp9

WFM: 

XKNKESu.png

Caveats: You'll have to re-encode the PAC script and re-modify the switch whenever you add new domains; once the length of the cmdline switch gets too big for Windows Command Shell, this method will quit working... IOW: Use an extension!

Addendum: I have verified myself the fact the Chinese must have done something wrong with their 360EE browser :angry: ; when you correctly configure IE (9 in my case - requires "unhealthy" syntax, i.e "file://", and NOT the "healthy" one, "file:///*") to use a locally hosted PAC file

YTcJjy2.png

and then instruct 360EE to "Use IE proxy", this configuration isn't applied :( ; OTOH, if you configure IE to use ProxyMII (FrontServer): 

uACWXHL.png

and then instruct 360EE to "Use IE proxy", this configuration is applied (360EE uses ProxyMII - of course, for ALL secure URLs) ; in this latter case, you can avoid IE completely from acting as a MITM by configuring 360EE to use directly ProxyMII's FrontServer

z3OqxcL.png

and selecting this option from its Proxy Context Menu

ZtIsIfB.png

Edited by VistaLover
Posted (edited)
On 5/18/2024 at 8:22 PM, AstroSkipper said:

Use in 360Chrome a proxy switcher extension like, for example, Proxy SwitchyOmega

PSO is still compatible with 360EE (latest v2.5.21 is still on MV2) and has full support for PAC scripts: 

n5nmxHq.png

Just enter its Settings and create a new "Profile"; when prompted, select the "PAC profile" option and give this new profile an appropriate name (here: "Local PAC"); the screenshot is self-explanatory :P ...

Edited by VistaLover
Posted

Thank you very much for your help.
It would probably be best with an extension.
However, a very simple extension that only activates the proxy would be sufficient.
I could then enable this with 360Chrome on the respective website.

So a PAC would not be necessary at all.

Is there a suitable extension that requires very little memory?

Posted (edited)
1 hour ago, Anbima said:

Is there a suitable extension that requires very little memory?

Already answered by me:

On 5/19/2024 at 10:11 PM, AstroSkipper said:

Proxy Switcher and Manager 0.5.0 is the last compatible to 360Chrome due to the manifest change from 2 to 3 and works great. I tested Direct, Manual Proxy (set here the local proxy 127.0.0.1:8079) and PAC Script, and all worked as it should. So, a working PAC script (not a PAC file but a PAC script under the section Inline) can be inserted directly in 360Chrome. No need to do that in IE8 and no need to activate ProxHTTPSProxy in the system proxy settings of IE8 by inserting 127.0.0.1:8079 there. Simply call up ProxHTTPSProxy.EXE directly from the main directory of my package instead of StartProxy.exe! And that means by using this extension you can also use @cmalex's ProxyMII if you prefer a pure proxy without any comfort. BTW, all that was done in 360Chrome in a few minutes. :P

On 5/19/2024 at 10:51 PM, AstroSkipper said:
function FindProxyForURL(url, host) {
if (shExpMatch(host, "example.com")) {
 return "PROXY 127.0.0.1:8079";
 }
  else 
    {
     return "DIRECT"; 
    }
 }

This script can be enhanced to pass more than only one URL to the local proxy, of course.

And since you made such a fuss about PAC here, the extension Proxy Switcher and Manager 0.5.0 which requires very little memory is the solution without having to switch the proxy manually when using a PAC script inside this extension.

Edited by AstroSkipper
Update of content
Posted (edited)
On 5/21/2024 at 4:04 PM, Anbima said:

It would probably be best with an extension.
However, a very simple extension that only activates the proxy would be sufficient.
I could then enable this with 360Chrome on the respective website.

So a PAC would not be necessary at all.

... I guess "we"'re moving in circles here, aren't "we"? :whistle:

If you don't want to employ a local PAC script after all :huh: and you want to use ProxyMII in 360EE by selectively (manually) enabling it on the (now two) problem sites, no extension is required; the options have been already presented to you by both AstroSkipper and me: 

1. Configure IE8 to use ProxyMII (its FrontServer) just for secure connections - then, manually enable this configuration in 360EE by setting "Proxy -> Use IE proxy" for the two "problem" sites, or
2. Configure 360EE to use ProxyMII (its FrontServer) directly (i.e. leaving IE8 out of this) and then manually enable this configuration, just for your two "problem" sites, by selecting "Proxy -> localhost:8079" (see image attachments in my previous reply just above) when visiting the affected sites :rolleyes: ...

Edited by VistaLover
Posted (edited)
1 hour ago, AstroSkipper said:

And since you made such a fuss about PAC here, the extension Proxy Switcher and Manager 0.5.0 which requires very little memory is the solution without having to switch the proxy manually when using a PAC script inside this extension.

It doesn't work for me.
I have entered the PAC script.
Should the tick be green? I can't confirm anything.
What am I doing wrong?

Screenshot.jpg

 

... For me it must be "*.example.com". Then it works.

Edited by Anbima

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...