|
-
Jan 21st, 2013, 05:25 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Blocking Sites
Hi I made a small app over the weekend that allows one to block websites, I made this to block access to facebook
Now the method I am using is the HOSTS file in windows, this works perfect and blocks in all Broswers.
Now I know what you guys are thinking this can be easy undone your correct.
So my questions are
how to block sites?
Can this be done in VB.NET?
How?
I had two ideas one is a addon that filters IEs events I done this works fine but a problum not eveyone uses IE now
so you can get around with any other broswer.
Second Idea was some sort of proxy software between the client that fillters stuff before it's sent to the client.
agian this maybe ok but mean configing each broswer.
Any ideas.
-
Jan 21st, 2013, 12:14 PM
#2
Re: Blocking Sites
In the past what I've done is simply edit the HOST file, but like you said if somebody knows about the HOST file, then it's easily crackable as all it is, is a textfile. My question to you is, who is your target audience? In my situation, I created a program that blocks a few websites using the HOST file for my dad who has 4 employees. They didn't know about the HOST file, so it worked in my favor. If you're audience is a group of programmers, or just people that know about the HOST file in general, I would suggest your second idea.
-
Jan 21st, 2013, 01:02 PM
#3
Thread Starter
Fanatic Member
Re: Blocking Sites
Well I want to make it for gernal people home users who ever maybe intrested. for bussiness to to block sites like facebook, youtube and other dogy sites,
-
Jan 21st, 2013, 01:32 PM
#4
Hyperactive Member
Re: Blocking Sites
While not Ideal, there is WinPCap, which WireShark uses to get low level network stats.
I'm not aware of any innate way that .Net can filter traffic like this without tapping into unmanaged code in some way, other than the simpler methods you suggested. You could look to see if any wrapped apis exist for WinPCap. Otherwise get some expensive network devices to do it for you :P
If you have a domain, you could look into group policies that can automatically set proxies for you. I know many browsers these days have admin templates for them to manage them.
Last edited by wakawaka; Jan 21st, 2013 at 01:44 PM.
-
Jan 21st, 2013, 01:41 PM
#5
Re: Blocking Sites
I'm not sure everybody would agree with your assessment of Facebook and YouTube as dodgy sites! Their respective libel lawyers for starters!
Windows already has parental controls available so I'm not sure what 'market' there would be for home users. Businesses running networks, of course, have a variety of methods available to them by controlling the network server, firewalls etc. independently of the users.
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
-
Jan 21st, 2013, 02:46 PM
#6
Thread Starter
Fanatic Member
Re: Blocking Sites
 Originally Posted by dunfiddlin
I'm not sure everybody would agree with your assessment of Facebook and YouTube as dodgy sites! Their respective libel lawyers for starters!
Windows already has parental controls available so I'm not sure what 'market' there would be for home users. Businesses running networks, of course, have a variety of methods available to them by controlling the network server, firewalls etc. independently of the users.
Maybe not but a few fiends of mine are sick of there kids accessing them without them been around.
So you never know but not also them sites I am on about porn sites, I think I may have a look at that WinPCap
bascily I want to try and make some kind of child safe browsing experience, Just wanted a good project to work on like, if it was even possiable in VB.NET
Plus not eveyone know how to always config firewalls most beginners only know how to connect to the internet.
Thanks for the help I look into the things suguested. If I find anything out I post here so someone else may need something like this.
Ps The host one I been makeing I upload to the CodeBank Soon just adding password protection options.
Last edited by BenJones; Jan 21st, 2013 at 02:59 PM.
-
Jan 21st, 2013, 03:03 PM
#7
Re: [RESOLVED] Blocking Sites
The problem with the 'child safe' experience is that it really doesn't exist. You simply can't block everything unless you never allow any Internet access at all when you are not present ... and you don't need a program for that. If you're aiming at a no configuration application as you suggest then who gets to decide what is and isn't child safe anyway? Until a few days ago it was generally assumed that The Tweenies was child-safe, after all!
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
-
Jan 21st, 2013, 08:19 PM
#8
New Member
Re: Blocking Sites
 Originally Posted by BenJones
Well I want to make it for gernal people home users who ever maybe intrested. for bussiness to to block sites like facebook, youtube and other dogy sites,
Yes, that's true. For blocking a few sites, you can simply by editing the hosts file, but it is easy to overcome.
For business to block a lot of sites, just like for employee restricting, maybe you need professional web filter.
Last edited by Scophie; Jan 28th, 2013 at 02:57 AM.
-
Jan 22nd, 2013, 05:12 AM
#9
Thread Starter
Fanatic Member
Re: [RESOLVED] Blocking Sites
Well after doing some more looking on google I came accross this looks intresting
http://www.codeproject.com/Articles/...r-step-by-step
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|