473,396 Members | 2,011 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,396 software developers and data experts.

Block internet access

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.
Nov 16 '05 #1
3 3729
sounds to me like you really want to be blocking ports ie; a make a firewall

Have a look at www.codeproject.com - there's quite a few examples there
Nov 16 '05 #2

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

hth
-marge

"Nurchi BECHED" <nu****@telus.net> wrote in message
news:oeEVc.32252$S55.19671@clgrps12...
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.

Nov 16 '05 #3
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> "Nurchi BECHED" <nu****@telus.net> wrote in message
MI> news:oeEVc.32252$S55.19671@clgrps12...
??>> 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.
Nov 16 '05 #4

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

Similar topics

4
by: Stefan Mueller | last post by:
I've just installed phpMyAdmin. If I have the line $cfg = 'http://localhost/php/phpmyadmin'; in my config.inc.php I can login to phpMyAdmin without any problems from my local machine. But it's...
0
by: Andreas Weller | last post by:
Hi! I downloaded Surfblocker from http://www.gslahr.og.bw.schule.de/ml/tools.html for blocking internet usage for our school's PC pool. With this script you can block Users (Nutzer), Groups...
18
by: Michal Mieszkowski | last post by:
i have a block of html code looking like this <FORM name=myform> <INPUT type=text name=firstname> <DIV id=mydiv> <INPUT type=text name=address> </DIV> </FORM> i can access firstname field...
4
by: Christopher | last post by:
This should be a quick one. URL: http://cfa-www.harvard.edu/~cpilman/Stuff/flush.html Code: ============================= <!DOCTYPE HTML Public "-//W3C//DTD HTML 4.01//EN">...
0
by: ELat | last post by:
I am developing a Windows Application in vb.Net that will eventually be accessible via the internet. I have created an XML Web Service which references the Data Access Application Block. I want to...
0
by: Jm | last post by:
Hi All I recently got some help with code conversion that i used in vb6 to block a specific tcp port. The code runs under a timer and is run on a very low tick count (Meaning it happens...
4
by: ApnaPakistani.Net | last post by:
Hi all, I want to block some peoples to enter a chatroom on my site. But I don't want to block the IP as it will block the whole cable net because of the same IP... I want to do something which is...
15
by: cssExp | last post by:
hello, Rather than going on a wild explanation on what's the the problem, it'll be much quicker and easier if i let you look at it yourself, so I'll post my page source (actual contents taken out,...
1
sokoun
by: sokoun | last post by:
Hi all, I want to allow or block a specific user to access the web site and go to the internet. what should i do? could you give a sample code to block this user. I want to use iptables...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.