You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

28. May 2002, 07:42:27

Willy

Posts: 1

Proxy Denied

System administrator does not allow to use
any browser, else IE5.0.
Proxy send message:
"Could not connect to proxy server:Access denied!"
I set browser IE5.0 Identify, but it's useless.IE5.0 browser works without any problems.
Help me please!

28. May 2002, 09:12:45

seeker

The WallWalker

Posts: 14009

I'm not sure that I understand, I assume that you are speaking of accessing an external proxy. If the message that you quoted is from the administrator of the proxy, there is probably nothing that you can do about it. The Opera user agent string carries an Opera tag regardless of which identity that you choose within Opera. Apparently this proxy is checking this tag. I have been looking for a way to change this, but inquiries of this sort have only received a response something to the effect that Opera can't change this due to some legal issues. I vaguely remember something, either at the Proxomitron forum or the help files, which I think address the issue of changing this outside of Opera, but I can't remember where to find this at the moment. Otherwise the only other solution there is. to change proxy services, there are thousands of them.

28. May 2002, 22:45:42

skiboo

Posts: 30

The proxomitron can indeed help. When you set opera to identify as IE, it still puts opera at the end of the indentification header, it looks like this:

User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98) Opera 6.02 [en]

Get proxomitron:

http://proxomitron.cjb.net

Proxomitron can be a little tricky to set up, if you have trouble, post a reply here or something. The thing you'll want to do that won't be listed in the setup is this:

Click the headers button. Down near the bottom of the list you'll see a bunch of user-agent filters. I'm not sure if comes with one to identify as IE or not... If it doesn't, you'll need to make one. Just edit on the user-agnet filters, and change the "Replacement Text" field to:

User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)

Then change the "HTTP Header" field to:
User-Agent: MSIE 5.5 (out)

Press ok, and activate the checkbox next to your new filter in the "out" column.

If none of this makes any sense, either reply or email me, and I'll try to explain better.

- Skib (skiboo@operamail.com)

28. May 2002, 23:03:43

seeker

The WallWalker

Posts: 14009

No, it didn't work. I just edited the filter as you suggested, but when I check it out at Browser Spy, it still identifies the user agent with the Opera tag:

http://gemal.dk/browserspy/basic.html

28. May 2002, 23:09:30

skiboo

Posts: 30

Did you set up proxomitron? The directions I gave were only a small part of it.

The most important thing is that you change your http proxy settings in opera to 127.0.0.1:8080

Open prox's log window, there should be a bunch of stuff happening in there while you browse web pages.

Note that in its default config, prox has all kinds of crazy filters and things enabled. These may prevent the use of cookies, etc.

28. May 2002, 23:17:30

skiboo

Posts: 30

Ahh. I think I see the problem. That site doesn't read the http headers, it uses javascript to figure out the info it gives.

smile

Disable javascript and you'll see what I mean. I doubt this guys proxy somehow uses javascript to check the browser type (since the script need to be in the actual web page, not the headers).

28. May 2002, 23:22:38

seeker

The WallWalker

Posts: 14009

If he can use JS to read the browser, then I imagine that some of the proxy server and websites will do the same thing. Changing Opera proxy setting to 127.0.0.1 doesn't work, it says that it can't find the proxy, I set it back to localhost.

28. May 2002, 23:29:51

seeker

The WallWalker

Posts: 14009

If you disable JS, he can't read anything at all. I don't know if that would improve compatability with services or not. I know that a lot of people run without JS, but I don't want the hassle. My interest in this is to make Opera more compatable with websites, but this procedure would have the opposite effect...I think.

28. May 2002, 23:32:29

skiboo

Posts: 30

Websites can certainly do the same thing, but proxies can't.

Well, I guess they could, but it would involve inserting javascript into every webpage that caused it to fail if something other than IE was used (this would be a lot of work). To do that, it would have to fecth the requested page anyhow, then change it, then send it to the browser... That'd be kinda insane.

I'd be willing to put a fair bit of money on this proxy server not using crazy scripts for browser detection. wink

28. May 2002, 23:32:34

seeker

The WallWalker

Posts: 14009

I was just looking at the Opera6.ini and there is a section for setting the user agent string, but I don't think that this can be changed there. I imagine that this is a part of Opera's source code.

28. May 2002, 23:38:02

skiboo

Posts: 30

Check out this page:

http://www.delorie.com:81/some/url.html

It'll show you the headers your browser sent smile

28. May 2002, 23:42:46

seeker

The WallWalker

Posts: 14009

I guess that is all that the browser is sending, but not all that it will yield. I wish there were a way to prevent JS from doing this and still remain enabled.

29. May 2002, 00:56:24 (edited)

skiboo

Posts: 30

Originally posted by seeker
I wish there were a way to prevent JS from doing this and still remain enabled.



Behold the glory of the Proxomitron!

Note, this is just a quick hack, I might write a better version later.

Basically, create a new web page filter that goes like this:

Name = "JS Useragent as MSIE"
Byte Limit = 256
Match = navigator.userAgent
Replace = "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"


And Check "Allow multiple matches"
Hit Ok, activate the filter, hit ok again.

Voila! Bathe in the glory that is proxomitron!

Update!
This hack, despite probably causing every other webpage in existance to stop working, actually stop that annoying "You must use IE to use hotmail" screen! It just logs you straight in smile

I now *must* write a proper version.

29. May 2002, 00:59:27

seeker

The WallWalker

Posts: 14009

I still got the same results with Browser Spy, but I think that I did something wrong. To verify, I created the filter under Webpage, rather than header filters. I wasn't certain if I should, but I included the quotation marks on the name line and the replacement text. Am I doing something wrong?

29. May 2002, 01:02:27

skiboo

Posts: 30

Yeah, its meant to be in the web page filters, not the headers. I had a bug in it when I first posted it, I've fixed it by editing the post, so check to see if yours still matches. And you are supposed to keep the quotes around the "MSIE... stuff

Hope this helps

29. May 2002, 01:06:22

seeker

The WallWalker

Posts: 14009

Yes, I saw the change in the byte limit and retested it, but it still gets the same:

App name
Microsoft Internet Explorer

appCodeName
Mozilla

appVersion
4.0 (compatible; MSIE 5.0; Windows 98)

appMinorVersion


IE real version
5.0

UserAgent
Mozilla/4.0 (compatible; MSIE 5.0; Windows 98) Opera 6.03 [en]

Security Policy
Property not supported or blank!

Platform
Win32 - Windows 32-bit platform

CPU
Property not supported or blank!

Online
Property not supported or blank!

Connection Type
Property not supported or blank!

29. May 2002, 03:07:58 (edited)

skiboo

Posts: 30

Note that I didn't just change the byte limit, but got rid of the bounds field alltogether. And at one point, the filter itself was editing my post (if fixed this quickly)... I've edited that post three times now.

29. May 2002, 01:23:34

seeker

The WallWalker

Posts: 14009

Yea! that did it, no more Opera tag. Thank you Skiboo, you are a scholar and a gentleman. smile smile smile

29. May 2002, 01:27:49

skiboo

Posts: 30

Be warned, that filter is pretty kludgy. It really should only change stuff that is in script tags, which was the orginal point of the bounds... I'm not quite sure how to get it working properly at the moment, and I'm going to go to bed. Check it out in 12 hours time and I might have made a better one.

29. May 2002, 01:31:00

seeker

The WallWalker

Posts: 14009

Sweet dreams. smile

29. May 2002, 14:38:21

seeker

The WallWalker

Posts: 14009

skiboo,

I been playing some with some different websites since I got this filter installed last night, and most of the browser checkpoints are identifyinng the browser as desired, but there is one that still sees it as Opera. It is one that is apparently using a con to make it appear that a browser is insecure by using iframes, but even with iframes, Java, and JScript turned off, it still identifies Opera. I remember that Gemal (who operates the checkpoint that we were using) saying that he uses JScript and VBScript to interrogate the browsers. Do you suppose that VBScript is how this last site is reading Opera as Opera:

http://www.angelfire.com/art/proxyblind/

Do you think that your filter could be adapted to modify this also?

29. May 2002, 17:49:12

skiboo

Posts: 30

Hey, it turns out that prox has some similar filters, with a little modification, they can be just what you need. The filters in question are about 2/3 of the way down the list, and are:
Hide browser's version from JS
Hide browser's identity from JS

He's got the idendity replacement text set as 'shonenscape'... I like to keep mine as:
'Mozilla/4.41 (BEOS; U ;Nav)'
(That's the identity replacement field.. and it needs the quotes)

Or you can set it to the IE string that I was using before. You can pretty much delete the other one I made. Also, the browser version filter defaults to 2.2 or something, put it up to 4.41, and hotmail still works smile

Also, exactly which of the tests at that proxy blind site were you running?

29. May 2002, 18:02:17

seeker

The WallWalker

Posts: 14009

I wasn't actually running a test, it just comes up automatically. Just click on either mirror and go to the fourth paragraph, or if you have Iframe enabled it will be a window instead. Just below this it gives your user string and IP.

I'll take a look at those two Proxo settings, but wouldn't the original string that you had last night be most likely to be univeraal?

29. May 2002, 18:12:40

skiboo

Posts: 30

Yep, what I just posted fixes it right up.
I agree that IE is probably more universal, but most sites either check for IE or Navigator, and do different scripts accordingly... opera is more likely to work with the Nav scripts. Still, it might be better to put a win32 Nav string in instead of the beos one... but I like the idea of BeOS comin up everywhere in the logs smile

Also, don't kbe concerned about that thing that lists your c:\ drive... the server can't really see it, its just a cheap trick. (and an old one at that)

29. May 2002, 18:51:50

seeker

The WallWalker

Posts: 14009

Dang, I doing something wrong, it work okay at Gemals site, but at delorie and the proxy site they both are listing Opera. The only change that I made on the browser version filter was to '4.41'. and on the browser identity filter I have:

Filter name: Hide Browser's Identity from JS

URL Match: blank

Multiple matches: enabled

Bounds match: blank

Byte limit: 25 I also tried 256 like before.

Matching Exp: navigator.(appName|userAgent)

Replacement text: "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"

I may have got this mixed up combining the two filters, but if it works for you,it should work for me also.

29. May 2002, 19:08:07

skiboo

Posts: 30

What you've got sounds about right.

Make sure that you're refreshing the web page that you're using to test this on.

29. May 2002, 19:12:57

seeker

The WallWalker

Posts: 14009

Yeah, I can refresh until I'm blue in the face and it still says Opera on delorie and the proxy site. There must be something else sending the information.

29. May 2002, 19:22:27

seeker

The WallWalker

Posts: 14009

Skiboo,

Since you are so familiar with Proxo, I'll bet that you are a member of their forum at:

http://asp.flaaten.dk/pforum/default.asp

I am locked out of their forum because my password and email account got messed up on my profile. I can't find an email address for the forum itself on the portions that I can access. Would you consider seeing if you can get one for me?

29. May 2002, 19:31:18

skiboo

Posts: 30

Strange... I can't think what else it might be :/

If you want to try with my exact filters, find and open (in notepad or something) the default.cfg file that prox is using, and scroll down to the section where these filters are (its all plain text).
Here's what mine looks like:

Name = "Hide Browser's Version from JS"
Active = TRUE
Limit = 25
Match = "'4.41'"
Replace = "'4.41'"

Name = "Hide Browser's Identity from JS"
Active = TRUE
Limit = 25
Match = "navigator.(appName|userAgent)"
Replace = "'Mozilla/4.41 (BEOS; U ;Nav)'"

If you cut out the two filters there and paste mine in, then reload the .cfg file in prox, you should (in theory) have the exact same filters I'm using.

29. May 2002, 20:36:37

seeker

The WallWalker

Posts: 14009

Can't believe it. Cut and pasted your filters and I still get the same result, they see me as Opera.

29. May 2002, 20:54:55

seeker

The WallWalker

Posts: 14009

I opened Proxo's log window and verified that it is still sending my browser identification as it originally was before we started. I went back over this thread to review it, and came back to the point where you said something about changing the http header in Opera to 127.0.0.1:8080, but that did not work, because Opera could not find Proxo and I set it back to localhost:8080. This is the only variation between us that I can see, so it must be the reason for the problem. I assumed that by http header, that you were referring to the proxy settings under Opera's network preferences, is this correct?

2. June 2002, 02:45:56

skiboo

Posts: 30

seeker, make sure that you don't have my original filter enabled, that may be the cause of the problem.

2. June 2002, 02:53:54

seeker

The WallWalker

Posts: 14009

No, I had it disabled, but I just went back and removed it altogether, and there is no change.

19. June 2002, 21:03:50

seeker

The WallWalker

Posts: 14009

Skiboo,

I was finally able to get back into the Proxo Forum recently, to ask the guys over there about using Proxo to cloaks the user string. But unfortunately after going in circles for a while, it still doesn't work, except for hiding the identity from Javascript. When I tried to clarify my question and desire about modifying the string sent out in the header, I got mixed answers, that ranged from: of course, That's the way it work > You can do this, with this download file (which was the same as had been used before > This is foolish to do, but. At the moment, I am left with the impression that this is not possible.

http://asp.flaaten.dk/pforum/topic.asp?ARCHIVE=&TOPIC_ID=630

Forums » Opera for Windows/Mac/Linux » Opera for Windows