Internet Filter by C# Code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joey Powell

    #1

    Internet Filter by C# Code

    I would like to know if anyone has any information on how to write C#
    code to "intercept" http traffic to and from websites.

    Not that I'm trying to re-invent the wheel here, but I am having a
    very hard time in finding some out-of-the box software to do what I
    consider to be something relatively simple.

    I have about 50 Windows NT 4.0 workstation boxes that I would like to
    control internet access on. I want to be able to block all traffic,
    except that to or from websites that are on a "whitelist" that I
    create.

    That's it! I don't need a million bells and whistles. I don't need 50
    security setting options...all I need is the capability to use a
    whitelist.

    We were using the noaccess.rat configuration of Content Advisor (both
    free and built into IE). That was perfect at first, but it has proven
    to be totally incompatible with javascript (buttons, etc...).

    I also have tried...

    Net Nanny 5 = Crappy, ineffective, whitelist didn't work

    CyberSitter

    Norton Internet Securities = Would not run on NT4. What's up with
    that? What brainiac led that development project? Contrary to what
    this would seem to indicate, many businesses are still using NT4. We
    are using it. Many other companies that I am aware of are also still
    using it. Those software companies that continue to put out software
    that will not run on it are only hurting themselves. The framework and
    ..net apps have no problem with it!

    Do you guys have any code samples on how to do this? Any other
    suggesstions?
  • Dmitriy Lapshin [C# / .NET MVP]

    #2
    Re: Internet Filter by C# Code

    Joey,

    I just wanted to say that C# is probably not the best choice for a
    system-level application like this. I believe plain C++ is much better here
    as you will need to do lots of low-level API calls.

    As a ready-made solution, you can take a look at AtGuard. It's actually a
    firewall, but its settings can be password-protected so you will be able to
    employ its Ad-Blocking facility as a kind of black/white list.

    --
    Dmitriy Lapshin [C# / .NET MVP]
    X-Unity Test Studio

    Bring the power of unit testing to VS .NET IDE

    "Joey Powell" <joey.powell@go ldcoinc.com> wrote in message

    news:bdaf8387.0 309291948.50b67 a40@posting.goo gle.com...[color=blue]
    > I would like to know if anyone has any information on how to write C#
    > code to "intercept" http traffic to and from websites.
    >
    > Not that I'm trying to re-invent the wheel here, but I am having a
    > very hard time in finding some out-of-the box software to do what I
    > consider to be something relatively simple.
    >
    > I have about 50 Windows NT 4.0 workstation boxes that I would like to
    > control internet access on. I want to be able to block all traffic,
    > except that to or from websites that are on a "whitelist" that I
    > create.
    >
    > That's it! I don't need a million bells and whistles. I don't need 50
    > security setting options...all I need is the capability to use a
    > whitelist.
    >
    > We were using the noaccess.rat configuration of Content Advisor (both
    > free and built into IE). That was perfect at first, but it has proven
    > to be totally incompatible with javascript (buttons, etc...).
    >
    > I also have tried...
    >
    > Net Nanny 5 = Crappy, ineffective, whitelist didn't work
    >
    > CyberSitter
    >
    > Norton Internet Securities = Would not run on NT4. What's up with
    > that? What brainiac led that development project? Contrary to what
    > this would seem to indicate, many businesses are still using NT4. We
    > are using it. Many other companies that I am aware of are also still
    > using it. Those software companies that continue to put out software
    > that will not run on it are only hurting themselves. The framework and
    > .net apps have no problem with it!
    >
    > Do you guys have any code samples on how to do this? Any other
    > suggesstions?[/color]

    Comment

    • Jeffrey Tan[MSFT]

      #3
      RE: Internet Filter by C# Code


      Hi joey

      I think you can use the Microsoft's winproxy for Windows Nt 4.0 to get what
      you want.
      If you want to implement a proxy yourself by C#, you can refer to the
      articles below:
      http://www.c-sharpcorner.com/internet/web_proxy.asp

      Hope this helps,
      Best regards,
      Jeffrey Tan
      Microsoft Online Partner Support
      Get Secure! - www.microsoft.com/security
      This posting is provided "as is" with no warranties and confers no rights.

      --------------------
      | From: joey.powell@gol dcoinc.com (Joey Powell)
      | Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
      | Subject: Internet Filter by C# Code
      | Date: 29 Sep 2003 20:48:11 -0700
      | Organization: http://groups.google.com/
      | Lines: 36
      | Message-ID: <bdaf8387.03092 91948.50b67a40@ posting.google. com>
      | NNTP-Posting-Host: 69.29.56.150
      | Content-Type: text/plain; charset=ISO-8859-1
      | Content-Transfer-Encoding: 8bit
      | X-Trace: posting.google. com 1064893698 19515 127.0.0.1 (30 Sep 2003
      03:48:18 GMT)
      | X-Complaints-To: groups-abuse@google.co m
      | NNTP-Posting-Date: 30 Sep 2003 03:48:18 GMT
      | Path:
      cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new s-out.cwix.com!ne wsfeed.cwix.co
      m!tdsnet-transit!newspee r.tds.net!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-05!sn
      -xit-09!supernews.co m!postnews1.goo gle.com!not-for-mail
      | Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1881 05
      | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
      |
      | I would like to know if anyone has any information on how to write C#
      | code to "intercept" http traffic to and from websites.
      |
      | Not that I'm trying to re-invent the wheel here, but I am having a
      | very hard time in finding some out-of-the box software to do what I
      | consider to be something relatively simple.
      |
      | I have about 50 Windows NT 4.0 workstation boxes that I would like to
      | control internet access on. I want to be able to block all traffic,
      | except that to or from websites that are on a "whitelist" that I
      | create.
      |
      | That's it! I don't need a million bells and whistles. I don't need 50
      | security setting options...all I need is the capability to use a
      | whitelist.
      |
      | We were using the noaccess.rat configuration of Content Advisor (both
      | free and built into IE). That was perfect at first, but it has proven
      | to be totally incompatible with javascript (buttons, etc...).
      |
      | I also have tried...
      |
      | Net Nanny 5 = Crappy, ineffective, whitelist didn't work
      |
      | CyberSitter
      |
      | Norton Internet Securities = Would not run on NT4. What's up with
      | that? What brainiac led that development project? Contrary to what
      | this would seem to indicate, many businesses are still using NT4. We
      | are using it. Many other companies that I am aware of are also still
      | using it. Those software companies that continue to put out software
      | that will not run on it are only hurting themselves. The framework and
      | .net apps have no problem with it!
      |
      | Do you guys have any code samples on how to do this? Any other
      | suggesstions?
      |

      Comment

      Working...