Results 1 to 10 of 10

Thread: How can i Block Website in my Browser(P.C)

  1. #1
    Mithabutt's Avatar
    Mithabutt is offline Advance Member
    Last Online
    15th December 2023 @ 03:43 PM
    Join Date
    23 Oct 2012
    Location
    Lahore
    Gender
    Male
    Posts
    3,661
    Threads
    137
    Credits
    323
    Thanked
    205

    Post How can i Block Website in my Browser(P.C)

    Assalam-u-Alikum!

    All ITD members,

    Plz mje Koi Expert btaye k me website kase block karun...
    Apne Mozila,Explorer and chrome me,
    Yani Sirf Wahan Block ho jahan me karna chahta hun..
    Plz Help me.......

  2. #2
    Join Date
    14 Oct 2009
    Location
    Lahore
    Gender
    Male
    Posts
    274
    Threads
    25
    Credits
    0
    Thanked
    11

    Default

    You can easily and effectivily block access to a website by adding it to your Windows HOSTS file. (Yes, Hosts is capitalised for some strange reason).

    1.Go to your HOSTS file which is located at:
    C:\WINDOWS\SYSTEM32\DRIVERS\ETC for windows Vista and XP
    C:\WINNT\SYSTEM32\DRIVERS\ETC for Windows 2k
    C:\WINDOWS for Windows 98 and ME

    2. Open HOSTS with Notepad.

    The default Windows HOSTS looks like this:
    ______________________

    # Copyright © 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
    _____________________________

    3. Directly under the line that says 127.0.0.1 Localhost, you will want to type:

    127.0.0.1 name of the URL you want to block

    For example to block the MySpace.com homepage (highly recommended!), simply type:

    127.0.0.1 myspace.com
    127.0.0.1 www.myspace.com

    Other parts of MySpace could be blocked in a similar way:

    127.0.0.1 search.myspace.com
    127.0.0.1 profile.myspace.com
    etc etc etc...

    You may need to add sites with both with and without the "www.". Test after blocking to make sure you got it right.

    You can add as many sites as you wish to block in this fashion. I, myself, have over 12000 undesireable and dangerous sites in my personal HOSTS file!

    4. Close Notepad and answer "Yes" when prompted.

    5. Reboot your computer and attempt to access your now blocked website. You should see a Cannot find server or DNS Error saying: "The page cannot be displayed".

    -----------------------------

    Some people suggest that you add a website that you wish to block by adding it to Internet Explorer's Restricted Zone. This does NOT totally block a site. It will only RESTRICT a site from certain actions such as using javascript, Active-X and Java etc.

    Some people suggest that your add a website to the Internet Explorer 'Privacy' settings. This does not block a site. It only stops that site from using cookies.

  3. #3
    Mithabutt's Avatar
    Mithabutt is offline Advance Member
    Last Online
    15th December 2023 @ 03:43 PM
    Join Date
    23 Oct 2012
    Location
    Lahore
    Gender
    Male
    Posts
    3,661
    Threads
    137
    Credits
    323
    Thanked
    205

    Default

    Quote M_Iqbal said: View Post
    You can easily and effectivily block access to a website by adding it to your Windows HOSTS file. (Yes, Hosts is capitalised for some strange reason).

    1.Go to your HOSTS file which is located at:
    C:\WINDOWS\SYSTEM32\DRIVERS\ETC for windows Vista and XP
    C:\WINNT\SYSTEM32\DRIVERS\ETC for Windows 2k
    C:\WINDOWS for Windows 98 and ME

    2. Open HOSTS with Notepad.

    The default Windows HOSTS looks like this:
    ______________________

    # Copyright © 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
    _____________________________

    3. Directly under the line that says 127.0.0.1 Localhost, you will want to type:

    127.0.0.1 name of the URL you want to block

    For example to block the MySpace.com homepage (highly recommended!), simply type:

    127.0.0.1 myspace.com
    127.0.0.1 www.myspace.com

    Other parts of MySpace could be blocked in a similar way:

    127.0.0.1 search.myspace.com
    127.0.0.1 profile.myspace.com
    etc etc etc...

    You may need to add sites with both with and without the "www.". Test after blocking to make sure you got it right.

    You can add as many sites as you wish to block in this fashion. I, myself, have over 12000 undesireable and dangerous sites in my personal HOSTS file!

    4. Close Notepad and answer "Yes" when prompted.

    5. Reboot your computer and attempt to access your now blocked website. You should see a Cannot find server or DNS Error saying: "The page cannot be displayed".

    -----------------------------

    Some people suggest that you add a website that you wish to block by adding it to Internet Explorer's Restricted Zone. This does NOT totally block a site. It will only RESTRICT a site from certain actions such as using javascript, Active-X and Java etc.

    Some people suggest that your add a website to the Internet Explorer 'Privacy' settings. This does not block a site. It only stops that site from using cookies.

    Bhai Koi Simple Sa trick nai hoga......??
    Thanks FOR help

  4. #4
    Iam jabbar is offline Senior Member+
    Last Online
    11th March 2015 @ 12:47 PM
    Join Date
    12 Jan 2015
    Location
    THUL
    Age
    29
    Gender
    Male
    Posts
    221
    Threads
    18
    Credits
    0
    Thanked
    3

    Default

    nice

  5. #5
    Iam jabbar is offline Senior Member+
    Last Online
    11th March 2015 @ 12:47 PM
    Join Date
    12 Jan 2015
    Location
    THUL
    Age
    29
    Gender
    Male
    Posts
    221
    Threads
    18
    Credits
    0
    Thanked
    3

    Default

    thanks for sharing

  6. #6
    Iam jabbar is offline Senior Member+
    Last Online
    11th March 2015 @ 12:47 PM
    Join Date
    12 Jan 2015
    Location
    THUL
    Age
    29
    Gender
    Male
    Posts
    221
    Threads
    18
    Credits
    0
    Thanked
    3

    Default

    how to block wabsite in my wifi

  7. #7
    Iam jabbar is offline Senior Member+
    Last Online
    11th March 2015 @ 12:47 PM
    Join Date
    12 Jan 2015
    Location
    THUL
    Age
    29
    Gender
    Male
    Posts
    221
    Threads
    18
    Credits
    0
    Thanked
    3

    Default

    thanks

  8. #8
    Adnanxyz's Avatar
    Adnanxyz is offline Senior Member+
    Last Online
    29th June 2017 @ 10:04 AM
    Join Date
    28 May 2014
    Age
    38
    Gender
    Male
    Posts
    413
    Threads
    17
    Credits
    214
    Thanked
    27

    Default

    Quote Mithabutt said: View Post
    Bhai Koi Simple Sa trick nai hoga......??
    Thanks FOR help
    ye simple hi ha bhai. nhi to ye software try kro http://www.k9webprotection.com/

  9. #9
    ShaNikhaN696 is offline Senior Member+
    Last Online
    31st January 2016 @ 02:55 AM
    Join Date
    19 Aug 2013
    Location
    Islamabad
    Gender
    Male
    Posts
    89
    Threads
    0
    Credits
    0
    Thanked
    2

    Default

    Bother Aap Google Crome extensions Main Adblock Instal Kar Lain

  10. #10
    Awesome_Boy's Avatar
    Awesome_Boy is offline Senior Member+
    Last Online
    11th October 2016 @ 03:15 PM
    Join Date
    22 Apr 2013
    Location
    Islamabad
    Gender
    Male
    Posts
    7,772
    Threads
    258
    Credits
    6,794
    Thanked
    1013

    Default

    Old thread
    Thread Closed

Similar Threads

  1. Website Block nice software
    By shah2010 in forum General Discussion
    Replies: 3
    Last Post: 27th May 2009, 11:58 AM
  2. ALL WEBSITE Block .......
    By justabdul in forum Ask an Expert
    Replies: 9
    Last Post: 13th September 2008, 02:04 PM

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
  •