Results 1 to 3 of 3

Thread: Internet Explorer's Restrict Sites via c#

  1. #1
    Join Date
    Jan 2009
    Posts
    163

    Internet Explorer's Restrict Sites via c#

    Hi friends,

    I would like to learn how to add/remove/list sites in IE's restricted site list through a c# application.or any inputs in order to accomplish this?I can see the changes it makes in the registry but i would rather not be changing it directly.Any thoughts...

    thanks goes for any help as always !!

  2. #2
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Internet Explorer's Restrict Sites via c#

    Curbing web browsing can prevent children from accessing dangerous content on the internet, or having to make judgment calls over suitable relationships in chat-rooms. you can do it in C#, but am not much in to it,any way i can provide some inputs
    using System.IO;
    using System;
    using Microsoft.Win32;
    using System.Security.Permissions;
    string strRemotePC = "myMachineName";
    RegistryKey environmentKey = RegistryKey.OpenRemoteBaseKey(
    RegistryHive.CurrentUser, strRemotePC).OpenSubKey(
    @"HKEY_CURRENT_USER\Printers\Connections");

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: Internet Explorer's Restrict Sites via c#

    Microsoft has some security protections to prevent direct access to an input field of type file.so that's the problem. The most common solution I’ve come across is to either just click the browse button, which fails if you are trying to automatically fill something in, or to use Send Keys, which fails if the user doesn’t have focus on the application at the moment.It's as though he willfully wants to disregard help. I suspect he just wants us to give him the full code, and I'm sick and tired of seeing a variation of the same post from him.look at this codes for the time being
    string strRemotePC = "myMachineName";

    RegistryKey CURRENT_USER_Key_Printers = RegistryKey.OpenRemoteBaseKey(
    RegistryHive.CurrentUser, strRemotePC).OpenSubKey(
    @"Printers");
    //HKEY_CURRENT_USER\Printers\Connections
    foreach (string subKeyName in CURRENT_USER_Key_Printers.GetSubKeyNames())
    {
    if (subKeyName.ToLower().Trim() == "connections")
    {
    using (RegistryKey tempKey = CURRENT_USER_Key_Printers.OpenSubKey(subKeyName))
    {
    Console.WriteLine("\nThere are {0} values for {1}.",
    tempKey.ValueCount.ToString(), tempKey.Name);
    foreach (string valueName in tempKey.GetValueNames())
    {
    Console.WriteLine("{0,-8}: {1}", valueName,
    tempKey.GetValue(valueName).ToString());
    }
    }
    }
    }

Similar Threads

  1. Are google sites ban on internet explorer 11
    By 1bal in forum Technology & Internet
    Replies: 3
    Last Post: 12-09-2013, 11:12 AM
  2. some of the sites are not opening in internet explorer-9
    By ZewrI in forum Technology & Internet
    Replies: 4
    Last Post: 15-03-2011, 06:28 AM
  3. How to disable suggested sites From Internet Explorer 8?
    By REDBULL in forum Technology & Internet
    Replies: 4
    Last Post: 27-01-2010, 09:01 PM
  4. Restrict Internet Explorer’s Accessibility Settings changes
    By rajmalhotra in forum Operating Systems
    Replies: 3
    Last Post: 05-06-2009, 11:27 PM
  5. Internet Explorer shuts down on some sites
    By Psycrow in forum Operating Systems
    Replies: 1
    Last Post: 30-12-2008, 08:39 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,022,793.29297 seconds with 17 queries