SEE THIS ???

kosandpol

Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    Several ways.
    1. Remove Gateway entry in TCP/IP settings.
    2. Remove DNS entry in TCP/IP settings.
    3. edit the hosts file (for windows its in windows/system32/drivers/etc/host, for *nix its in /etc/hosts) and add the domains you want to block there and point them to 127.0.0.1
     

    lankanatha

    Well-known member
  • Dec 8, 2008
    3,560
    212
    63
    hapoooo puluwan

    c eke thiyenawa localhost kiyala notepad file ekak

    eake agata web url eka daapan
     

    Road Runner

    Well-known member
  • Apr 3, 2008
    2,910
    37
    48
    Kiribathgoda
    kosandpol said:
    Several ways.
    1. Remove Gateway entry in TCP/IP settings.
    2. Remove DNS entry in TCP/IP settings.
    3. edit the hosts file (for windows its in windows/system32/drivers/etc/host, for *nix its in /etc/hosts) and add the domains you want to block there and point them to 127.0.0.1

    Therenawa madi machan.... thawa tikak pahadili karannko...............
     

    Ethical_World

    Member
    Mar 15, 2009
    2,036
    90
    0
    #! /bin/sh
    Road Runner said:
    Therenawa madi machan.... thawa tikak pahadili karannko...............

    lol editing Host file is the same way !! if u dnt have localhost on ur computer do this

    goto C:\WINDOWS\system32\drivers\etc

    there is a file called "host" right click on mouse and open it with notpad

    there will be somthing like this

    Code:
    # Copyright (c) 1993-1999 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    #
    # For example:
    #
    #      102.54.94.97     rhino.acme.com          # source server
    #       38.25.63.10     x.acme.com              # x client host
    
    127.0.0.1       localhost

    edit it to this
    Code:
    # Copyright (c) 1993-1999 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    #
    # For example:
    #
    #      102.54.94.97     rhino.acme.com          # source server
    #       38.25.63.10     x.acme.com              # x client host
    
    127.0.0.1       localhost
    127.0.0.1      www.yoursite.com

    and save it !!

    and when u type www.yoursite.com the site will be down