Closed Thread
Results 1 to 6 of 6

Thread: Determine and block webpages

  1. #1
    falco85 is offline Programmer
    Join Date
    Apr 2006
    Posts
    105
    Rep Power
    0

    Determine and block webpages

    How can I determine what webpage a web browser is on and then how can I block that webpage if it has certain words on it? this will be sort of a "net nanny" type program.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    brackett is offline Programmer
    Join Date
    May 2006
    Posts
    192
    Rep Power
    22
    Usually, you'd do that thru a proxy server - making all requests go thru a server which can filter as needed. Microsoft's ISA, Squid, etc. all employ that approach.

    The way you worded you question makes me think you want to do this client side...that's a difficult road, I think. Much easier to control the network side, or you'd have to force a particular (possibly custom built) browser. For a home PC, you could set up a proxy server on the local machine and redirect requests thru there.

  4. #3
    Void's Avatar
    Void is offline Programming Expert
    Join Date
    Jun 2006
    Posts
    410
    Rep Power
    23
    There was a way to connect to IE and view each page that it visited in VB 6 but I can't remember how. Also, what brackett said makes a lot of sense. It would be near impossible to do this client side with the array of browsers out there.
    Void

  5. #4
    falco85 is offline Programmer
    Join Date
    Apr 2006
    Posts
    105
    Rep Power
    0
    Yes, I was wanting to do it from the client side. This sounds like an impossible project. Is there a way to just log the urls visited?

  6. #5
    brackett is offline Programmer
    Join Date
    May 2006
    Posts
    192
    Rep Power
    22
    Again, you'd have to force everything thru a proxy server, control what browser is used, or hook into the network stack. If this is for a kiosk type scenario, the first 2 are reasonably accomplished. If not, you can go with the 3rd option by running something like Ethereal and logging packets destined for port 80/443.

  7. #6
    falco85 is offline Programmer
    Join Date
    Apr 2006
    Posts
    105
    Rep Power
    0
    Hmm, sounds like I'm going to just use a proxy....

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Determine power of 2 in C
    By fayyazlodhi in forum C Tutorials
    Replies: 12
    Last Post: 07-14-2011, 11:29 AM
  2. Comparing webpages' contents
    By denarced in forum General Programming
    Replies: 10
    Last Post: 03-19-2011, 11:23 AM
  3. Any good advice on arrays/or webpages
    By Sparty2009 in forum C and C++
    Replies: 19
    Last Post: 11-09-2009, 01:48 AM
  4. Storing webpages in a database
    By neo1erk in forum Database & Database Programming
    Replies: 2
    Last Post: 12-13-2007, 10:04 AM
  5. Question: Sound In WebPages
    By skilletsteve in forum HTML Programming
    Replies: 5
    Last Post: 10-07-2006, 10:52 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts