Block internet access

N

Nurchi BECHED

Hello, my dearest respected brother, All!

Hey, guys, this is Nurchi again.

I had a quick question:
Can C# (I guess I should say .NET Framework) block
internet access.
I am sure the answer is "YES!" but I need to know how...
There should be some articles on that...

For example, if I want to block browsing web pages, but
allow email (outlook, etc...) for current user (but let's not
worry about users - it is a solved problem)?

Thank you.
Any help would be appreciated.
With best regards, Nurchi BECHED.
 
M

Marge Inoferror

Remove the DNS server and use a hosts file, instead.
Set the hosts file to resolve their email server addresses only.

hth
-marge
 
N

Nurchi BECHED

Hello, Marge!
You wrote on Sun, 22 Aug 2004 00:48:54 GMT:

MI> Remove the DNS server and use a hosts file, instead.
MI> Set the hosts file to resolve their email server addresses only.

I thought about that too, but I want to learn how to do that in C#...
It would be nice to have your own 'firewall'...
Not something that pops up a window saying that some application
is trying to access internet, but completely blocking it for certain
USERS by schedule...

MI> hth
MI> -marge

MI> ??>> Hello, my dearest respected brother, All!
??>>
??>> Hey, guys, this is Nurchi again.
??>>
??>> I had a quick question:
??>> Can C# (I guess I should say .NET Framework) block
??>> internet access.
??>> I am sure the answer is "YES!" but I need to know how...
??>> There should be some articles on that...
??>>
??>> For example, if I want to block browsing web pages, but
??>> allow email (outlook, etc...) for current user (but let's not
??>> worry about users - it is a solved problem)?
??>>
??>> Thank you.
??>> Any help would be appreciated.
??>> With best regards, Nurchi BECHED.
??>>

With best regards, Nurchi BECHED.
 
R

Radu Cosoveanu

Hi all,

I think is better to use the windows policy or another OS
limitations.
To change the DNS programmatically has a security problem. The user
can enter there and complete by hand the correct data.
Personally, I see the blocking ports solution the correct way.

Bests,
Radu Cosoveanu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top