Results 1 to 8 of 8

Thread: Website blocker

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Location
    Denmark
    Posts
    132

    Question Website blocker

    I want to build a website blocker..

    When the website is opened, there should come somekind of an error, that says that this page could be loadet, because of a reason..

    So etc, you type a website in a textbox, and if the website is etc loadet in firefox, then the website will be closed.

    Is this possible, and if yes, can someone please make the codes for me?? =)
    Eldrup

  2. #2
    PowerPoster keystone_paul's Avatar
    Join Date
    Nov 2008
    Location
    UK
    Posts
    3,327

    Re: Website blocker

    can someone please make the codes for me?? =)
    Yup.. these people can : Link

  3. #3
    Fanatic Member Vectris's Avatar
    Join Date
    Dec 2008
    Location
    USA
    Posts
    941

    Re: Website blocker

    Make the code for you? Why would we make a program and then let you have the credit?
    If your problem is solved, click the Thread Tools button at the top and mark your topic as Resolved!

    If someone helped you out, click the button on their post and leave them a comment to let them know they did a good job

    __________________
    My Vb.Net CodeBank Submissions:
    Microsoft Calculator Clone
    Custom TextBox Restrictions
    Get the Text inbetween HTML Tags (or two words)

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Location
    Denmark
    Posts
    132

    Re: Website blocker

    Quote Originally Posted by Vectris View Post
    Make the code for you? Why would we make a program and then let you have the credit?
    No not at all, i dont want any credit for anything I am publishing.

    I'm just doing this for fun, and adding small things to it..
    Eldrup

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Website blocker

    The simplest way is to write an entry to the hosts file.
    If you want to display a custom page with information on it, though, then you'll need to write something akin to a mini-firewall service and have it intercept the information and return the HTML if required (or redirect).

    Have a look at Routing and Remote Access.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Location
    Denmark
    Posts
    132

    Re: Website blocker

    Quote Originally Posted by mendhak View Post
    The simplest way is to write an entry to the hosts file.
    If you want to display a custom page with information on it, though, then you'll need to write something akin to a mini-firewall service and have it intercept the information and return the HTML if required (or redirect).

    Have a look at Routing and Remote Access.
    Code:
    Developer Audience
    
    The Routing and Remote Access Service APIs are designed for use by C/C++ programmers. Programmers should also be familiar with networking concepts.
    Sorry, but i cant use that. Its from your link.... ?
    Eldrup

  7. #7
    Addicted Member Dark Anima's Avatar
    Join Date
    Sep 2008
    Posts
    183

    Re: Website blocker

    There's props an easier way for doing it, but if you want to intercept browsing to the page and redirect it to another page, a system-wide API hook could do the trick for you.
    There's libraries made for that, look for Deviare from Nektra. It'll work on any com supportive language (for ex. VB) and is really easy to use.

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Location
    Denmark
    Posts
    132

    Re: Website blocker

    I downloadet it now.. But there are many applications. Can you please tell me the direct way to the right one?
    Eldrup

Tags for this Thread

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