CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2004
    Posts
    5

    Arrow Need to block url in all browsers

    I'm wrinting a small program and one of the feature is to block some urls when the user try to go on the web browser.

    So I would like to know where can I look for information about how can I do this.

    Thank you

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Need to block url in all browsers

    Enter the addresse's in the HOSTS file
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Apr 2004
    Posts
    5

    Re: Need to block url in all browsers

    but the problem is that some users have different leves, and they will be able to see some websites that others cannot.

    So I would have to rewrite the host files everytime a users login in to the computer?

  4. #4
    Join Date
    Aug 2001
    Location
    Stockholm, Sweden
    Posts
    1,664

    Re: Need to block url in all browsers

    dglienna solution's is very a pragmatic one. Other solutions probably need lots of development, for instance writing a web or socks proxy with user auth etc.

    Maybe you can find a free web proxy that supports Proxy-Authorization on localhost with NTLM auth... (with url blocking support as well of course).

  5. #5
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Need to block url in all browsers

    Buy a Firewall appliance for a business. That's the only way to make sure. Even with hosts file, people can still bypass it if they know how. You'd have a password to bypass the firewall, but, could also have many levels of authentication.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  6. #6
    Join Date
    Nov 2007
    Posts
    613

    Re: Need to block url in all browsers

    Use this server, it will allow you any kind of user access customization you want. Basically it's a proxy server.
    http://www.microsoft.com/isaserver/default.mspx

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured