473,385 Members | 1,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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?
Nov 15 '05 #1
2 5424
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
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Joey Powell" <jo*********@goldcoinc.com> wrote in message

news:bd**************************@posting.google.c om...
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?


Nov 15 '05 #2

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: jo*********@goldcoinc.com (Joey Powell)
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Subject: Internet Filter by C# Code
| Date: 29 Sep 2003 20:48:11 -0700
| Organization: http://groups.google.com/
| Lines: 36
| Message-ID: <bd**************************@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: gr**********@google.com
| NNTP-Posting-Date: 30 Sep 2003 03:48:18 GMT
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!news-out.cwix.com!newsfeed.cwix.co
m!tdsnet-transit!newspeer.tds.net!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-05!sn
-xit-09!supernews.com!postnews1.google.com!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:188105
| X-Tomcat-NG: microsoft.public.dotnet.languages.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?
|

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Joseph Haig | last post by:
Can someone please help me with a problem I have with using alpha transparency in Internet Explorer. I use a php script to determine the browser and if it is found to be Internet Explorer, the...
6
by: him | last post by:
All the world aside, Iran alone and on itself has blocked half of the internet, including many "moral" and useful websites, mainly because of its medieval policies. The level of filtering has...
3
by: le_mo_mo | last post by:
I was wondering if any body has used Internet as a WAN (Wide Area Network) to provide database access. I know about web services but I like to experiment with using Internet as a extended network...
1
by: Robert Neville | last post by:
I would like to add filter functionality to my database whether through the Main form or the subform. This question may be rudimentary, yet I have not less experience with filtering data outside...
8
by: dick | last post by:
I am just trying to print/report the results of a "filter by selection" which is done by right-clicking a form, filling in values, and "applying the filter." I have searched the newsgroups, and...
2
by: Salad | last post by:
I have a log file with a list of records. The log file can be unfiltered or filtered. I have a command button to call a data entry form from the log. At first I was only going to present the...
1
by: Toble Rone | last post by:
I now that this can be a completely newbie question, but and a bit confused on this. I currently in a new project where i need to expose a lot of "sql functionality" to users using a WinForms...
5
by: thorley | last post by:
Greetings, I'm interested in a simple content-based internet firewall/filter, similar to dansguardian (http://dansguardian.org/), but written in python, and for windows. I assumed such a project...
1
by: woodey2002 | last post by:
Hi Everyone and many thanks for your time.. I am trying to begin access and a bit of VBA i am enjoying it but I have a annoying problem I just can’t get any where on. My databse mostly includes...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.