How to programatically set Proxy Exception in IE?

2019-06-17 18:55发布

问题:

I am trying to update programatically the Proxy Exception in IE (Tools -> Internet Options, Connections -> Lan Settings, Advanced and Exceptions), but I haven't been able to find the API and/or registry key. Anybody has an idea?

Thanks!

回答1:

If you're executing as the local user, the key is:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings

Then the valuename is ProxyOverride and the value is a semi-colon seperated string of addresses or domains.