473,809 Members | 2,777 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3759
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.n et> wrote in message
news:oeEVc.3225 2$S55.19671@clg rps12...
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.n et> wrote in message
MI> news:oeEVc.3225 2$S55.19671@clg rps12...
??>> 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
37018
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 not working from the Internet. To access it from the Internet I have modify the line $cfg = 'http://www.myserver.com/php/phpmyadmin';
0
1242
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 (Gruppen), etc. But the Script doesn't work with our Active Directory configuration. You can find a screenshot of our AD at http://www.andreas-weller.de/surfblocker/adshot.jpg And at http://www.andreas-weller.de/surfblocker/surfblockershot.jpg is the...
18
7255
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 with document.myform.firstname
4
2662
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"> <HTML><Head><Title>Get my feet off the ground</Title> <Meta HTTP-Equiv="Content-Type" Content="text/html; charset=us-ascii"> <Style type="text/css"> Body { font-size: 60px; }
0
846
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 create web methods for my VB.Net windows app with my web service primarily to retrieve, update datasets using stored procedures already created in my database. I have probably well over 5000 stored procedures. Can give some direction on the best...
0
2224
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 constantly). Unfortunately the code appears to do nothing ? This is the converted code Public Structure MIB_TCPROW Public dwState As Integer Public dwLocalAddr As Integer
4
1543
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 unique. It might be that I will check someone's hardware.information.... Please let me know ASAP. Help regarding this will be highly appreciated... Thanks in advance... Good Day.
15
3171
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, of course). <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Language" content="en-us" />
1
2368
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 as a firewall command. thanks.
0
10635
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10378
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10115
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7653
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3013
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.