URLs of type “http://user:password@example.com” in

2019-01-26 21:13发布

I had a web page in which the user specify an username and a password to make queries to a third site. In Firefox and Chrome I can make an URL of the form http://user:password@example.com, but Internet Explorer 7 says that it can not find the address.

Is there any form of setting user and password in the URL for Internet Explorer 7?

4条回答
太酷不给撩
2楼-- · 2019-01-26 21:17

If you don't want to mess with the registry yourself or are finding it difficult/still having trouble, Microsoft's got something called "microsoft fixit" .. seems a little gimmicky but it worked for me.

http://support.microsoft.com/kb/834489#FixItForMeAlways

EDIT: Upon inspection the fixit installer also added a local key HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN - iexplore.exe DWORD 1

and

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN\Settings - LOCALMACHINE_CD_UNLOCK DWORD 0

hope this helps someone.

查看更多
够拽才男人
3楼-- · 2019-01-26 21:25

A quick google search for "username password url internet explorer" turns up this Microsoft KB article, which mentions the issue and describes workarounds.

查看更多
时光不老,我们不散
4楼-- · 2019-01-26 21:26

You are correct: IE 7 does not support user names and passwords in HTTP or HTTPS URLs.

http://support.microsoft.com/kb/834489

The following workaround is given:

To disable the new default behavior in Windows Explorer and Internet Explorer, create iexplore.exe and explorer.exe DWORD values in one of the following registry keys and set their value data to 0.

For all users of the program, set the value in the following registry key: HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE

For the current user of the program only, set the value in the following registry key: HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE

查看更多
该账号已被封号
5楼-- · 2019-01-26 21:30

Is there any form of setting user and password in the URL for Internet Explorer 7?

No. This was disabled for security reasons: It was misused by phishers to obfuscate the real site address.

Reference:

查看更多
登录 后发表回答