1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Block website like avast

Discussion in 'C#' started by JeremiasRama, Dec 14, 2014.

  1. #1
    When using software like "AVAST" or "NETOP" we can easily block websites by putting the url into the list. If we try to open it in ANY BROWSER, it shows a page that said the url you're visiting is blocked.

    I lookup into the hostfile but found nothing. How's is work?
    JeremiasRama, Dec 14, 2014 IP
  2. O-D-T

    O-D-T Member

    Likes Received:
    Best Answers:
    Trophy Points:
    They are probably using kernel mode network filter driver that inspects the traffic and if a connection is detected to a blacklisted website, it is blocked and the message is injected to the network stream.

    On Windows, you can use Windows Filtering Platform and use functions like FwpmEngineOpen, FwpmSubLayerAdd, FwpmFilterAdd. These can be used from user mode to alter firewall behavior. Or, you can write network filter driver to have full access to the network stack.
    O-D-T, Dec 15, 2014 IP