block the websites in your own pc

Status
Not open for further replies.

Batistabomb

Deadman Walking
guys here is the cool tchnique where you can block your pc so that childrens cannot view some x type of sites :

If you are using Windows XP., open a DOS command window, type:

notepad C:\WINDOWS\system32\drivers\etc\hosts

Lets say that you want to block hxxp://www.rediff.com

Add the following line to the file:

127.0.0.1 hxxp://www.rediff.com

Do change "hxxp to http".
File > Save. You are done!
 

ray|raven

Think Zen.
I think even though its blocked this way we can access through the ip.
Not sure though.

@anand1
Just remove its entry from the file.

Regards,
ray
 

[xubz]

"The Cake is a Lie!!"
rayraven said:
I think even though its blocked this way we can access through the ip.
A better method then is to ping the domain first, get the IP and then add the IP instead of the Domain.

It blocks both :)
 

victor_rambo

हॉर्न ओके प्लीज़
[xubz] said:
A better method then is to ping the domain first, get the IP and then add the IP instead of the Domain.

It blocks both :)
but what if the ip is shared between domains?

wudn't all the sites on that ip be blocked?
 

gdatuk

Ambassador of Buzz
let me try and let u know tonight....
my brother is a constant pest...

he uses my high end dell to orkut ...need to put an end to this today.... grrrrrr
 

mehulved

18 Till I Die............
What you're doing anyways is assigning the hostname to your PC. 127.0.0.1 is the IP of the loopback interface, i.e. the PC itself. Anyone running a web server on their PC try this, it should return you the default page on your web server when you try the name of that site you blocked.
 

Pathik

Google Bot
Yup.. this is a old trick.. wen u do this it tries to access the site in 127.0.09.1 wich is lcalhost and hence doesnt find any page and gives an error..
 
OP
Batistabomb

Batistabomb

Deadman Walking
pathiks said:
Yup.. this is a old trick.. wen u do this it tries to access the site in 127.0.09.1 wich is lcalhost and hence doesnt find any page and gives an error..

That's correct dude, do you have any idea about symbian phones
 

Pathik

Google Bot
You mean a similar trick for symbian???
just create the site's bookmark and keep its default apn something with wrong proxy settings such that it wont connect..
 

roxisayshi

Broken In
@batistabomb

I did exactly what is written earlier by you. Also, gave space between 127.0.0.1 and address. Tried * as well.

Somehow, I couldn't able to block the desired website which happens to be none other than orkut. My sis is addicted to it. I need to block it by any means. Help me guyz.
 
Last edited:

satyamy

Alive Again...
not working on my PC :(

I have seen in my Friends PC his engineers has blocked orkut.com in his PC and just when you type orkut.com before pressing enter key 1 message come with a sound (muhhhhhhhaaaaaaaaaaa............)
and message says
[
"You Fool, Orkut has been banned by Administrator"
Muhuhahaha!
]

how is this done ??
any idea ???
 

Sukhdeep Singh

Host4Cheap.org
satyamy said:
not working on my PC :(

I have seen in my Friends PC his engineers has blocked orkut.com in his PC and just when you type orkut.com before pressing enter key 1 message come with a sound (muhhhhhhhaaaaaaaaaaa............)
and message says
[
"You Fool, Orkut has been banned by Administrator"
Muhuhahaha!
]

how is this done ??
any idea ???

*www.thinkdigit.com/forum/showpost.php?p=547769&postcount=15

@roxisayshi : dont add anything in front...Do this simply

127.0.0.1 orkut.com
127.0.0.1 www.orkut.com
 

the.kaushik

œ∑´®†¥¨ˆøπåß∂ƒ©˙∆˚¬Ω≈ ç√∫˜
not working for me..
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.rediff.com/
what i made wrong????
 
Status
Not open for further replies.
Top Bottom