Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 23rd, 2004, 6:04 PM   #1
NarrowPathPilgrim
Newbie
 
Join Date: Nov 2004
Posts: 5
Rep Power: 0 NarrowPathPilgrim is on a distinguished road
Hello,
I am new to VB and am trying to make a program that will search all websites that IE/Mozilla loads and look for bad words and then close IE/Mozilla and add the domain name to the hosts file. I don't have a clue how to do this so I need suggestions.

Note, This is to protect children from inappropriate material, it is not to make a virus that blocks antivirus websites.

Zach
NarrowPathPilgrim is offline   Reply With Quote
Old Nov 23rd, 2004, 10:50 PM   #2
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
Why rebuild the wheel? Just get AOL with parental controls or some Child protection software...
__________________

tempest is offline   Reply With Quote
Old Nov 24th, 2004, 11:04 AM   #3
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Because AOL sucks? There's other apps though - apparently NetNanny and CyberPatrol are pretty good.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Nov 24th, 2004, 12:26 PM   #4
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
Quote:
Originally posted by tempest@Nov 24 2004, 04:50 AM
Why rebuild the wheel? Just get AOL with parental controls or some Child protection software...
...
__________________

tempest is offline   Reply With Quote
Old Nov 24th, 2004, 12:46 PM   #5
NarrowPathPilgrim
Newbie
 
Join Date: Nov 2004
Posts: 5
Rep Power: 0 NarrowPathPilgrim is on a distinguished road
I know that AOL has such features but it is very expensive and I their software is hard on the computer, I also know that there are other programs that do this but they are almost always expensive and I would like to make one and release it as freeware, I think that every parent should have this type of programs available.
NarrowPathPilgrim is offline   Reply With Quote
Old Nov 24th, 2004, 1:22 PM   #6
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
After a quick search on google, for "Free Parental Controls" it turned up lots, one of them that i looked at was http://softappco.com/H_linternet.html
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Nov 24th, 2004, 1:33 PM   #7
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
But if you really want to make your own, I suggest looking into how firewalls work. Google for "intercepting Internet Explorer" and I'm sure you'll find some hacking site with some useful code.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jan 11th, 2005, 7:31 PM   #8
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
Hiya

If you want to go down the proper commercial filter route, you need to call API to install what is called a "Winsock hook" that allows your program to sit in between network traffic and get the contents of all winsock based (TCP/IP) communication. Whilst complex filters decode all this information up the network stack to the Application Layer (down into HTML etc) all you really need to do is make your program look out for certain strings within the data (i.e. profanity, etc) and drop the offending packet - these pages would just show a "page could not be displayed" error. Planesourcecode would be a good place to look, or Google. As ooble said, this would be a form of firewalling, although the programming may well turn out to be very complex (you would need several stacks - one for each connection in fact) and more suited to a language like C.

The alternative would be to write and Internet Explorer plugin that searches for phrases and blocks pages accordingly. On this there is undoubtedly a vast plethora of information available. I would actually start on MSDN or the KB and not google as there would be far too much information, including rubbish, advertising NetNanny etc.

The disadvantage with the second method would be that it would only work in IE and dependent technologies (outlook and AOL). Netscape for instance would be unaffected, and unless you're willing to write a plugin for every single browser on the planet, it would be unrealistic to expect 100% effectiveness.

Hope this is of some use.
Rory is offline   Reply With Quote
Old Jan 11th, 2005, 7:36 PM   #9
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
More...

Sorry...
As I clicked submit a third idea popped into my head.

There are ways of actually searching the contents of IE windows as a string, i.e. using instr() and the closewindow API. This searching could be done using window messages, getwindowtext or whatever. The official Microsoft-friendly way would be to use DDE. I don't know much about this - I've used it before for controlling Excel from my application, however it seems to be an old and somewhat obsolete technology, though I'm sure a quick Google will bring up loads. Also Instr() is sufficiently quick that you wouldn't need to create a "blacklist" as such.
Rory is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:59 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC