使用 C# 设置 IE 主页并禁用更改它?

发布于 2024-09-20 00:30:33 字数 373 浏览 3 评论 0原文

我们的一位客户要求我们开发一个 IE 工具栏,将客户主页设置为其公司网站并通过注册表进行跟踪。如果用户主页仍设置为公司网站,我们希望对其进行跟踪。

问题:

  1. 我可以通过注册表设置它,但我们也想禁用用户更改它(禁用 ie 主页文本框)。我们怎样才能做到这一点?

  2. 有没有办法像FileSystemWatcher一样动态跟踪主页?

谢谢!

致所有认为我们试图做出非法想法的人:这是一个为期 30 天的活动;不要认为我们在做违法的事情。未经用户批准,我们不会自动执行此操作,用户将在订阅后手动安装它,接受活动的 eula,并且他/她将被告知安装该加载项后会发生什么。

One of our customers requested us to develop an IE ToolBar which sets clients homepage to their company web site and track it via registry. We would like to track users homepage if it's still set to company's web site.

Questions:

  1. I can set it via registry but we also want to disable for user to change it (disabling the ie homepage textbox). How can we do it?

  2. Is there any way to track the home page dynamically like FileSystemWatcher?

Thanks!

To everyone who thinks we' re trying to do an illegal think: this is a 30 days campaign; do not think that we're doing an illegal thing. We will not do it automatically without users approval, user will install it manually after subscription, accepting the eula of the campaign and he/she will be istructed about what will happens if he/she installs the add-in.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

鹤仙姿 2024-09-27 00:30:33

对我来说听起来很像恶意软件。为什么要阻碍用户的自由?您还暗示用户甚至在使用 IE 甚至 Windows,这是愚蠢的,因为 IE 在占据多数的情况下正在逐渐失去市场“控制力”,让给 Firefox 和 Chrome 等其他浏览器。

Sounds very malware-like to me. Why would you impede users' freedoms? You're also implying that the user is even using IE or even Windows, which is foolish given that where it has a majority, IE is steadily losing market 'grip' to others such as Firefox and Chrome.

瀞厅☆埖开 2024-09-27 00:30:33

您可以通过设置注册表项来锁定用户更改主页:

HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Homepage

项类型为 DWORD,值为 1。

这将使 IE 中的编辑框“变灰”,但熟练的用户仍然可以直接在 Windows 注册表中编辑主页设置。警告:如果启用此锁,某些反间谍软件工具会发出警告。

当您想要删除锁定时,请将值设置为 0 或删除注册表中的 Homepage 项。

You can lock users from changing the homepage by setting a registry key:

HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Homepage

key type is DWORD and value is 1.

This will "grey out" the edit box in IE, but a knowledgeable user could still edit the homepage setting directly in Windows registry. Caveat: some antispyware tools raise a warning if this lock is engaged.

When you want to remove the lock, either set the value to 0 or remove the Homepage key in registry.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文