PDA

View Full Version : How To Block Webpage/ip Address Using Hosts File



slim150
10-15-2003, 04:06 AM
--------------------------------------------------------------------------------
I know how to block IP addresses and websites with things like zone alarm but i dont want to. i have a certain site that i want to block and i have its ip address, how can i block it so nothing gets sent to it. i think using the hosts file somehow

HeavyMetalParkingLot
10-15-2003, 04:20 AM
the easiest way to stop them is to stop browsing beastiality sites........

wormless
10-15-2003, 04:22 AM
or buy norton and block it tht way!

slim150
10-15-2003, 04:29 AM
uh no. mainly what my idea is when Dead Aim 4.1 comes out, i want to download it and a keygen, then block jdennis.net so it willnot keep reminding me about the serial

slim150
10-15-2003, 05:07 AM
i already have norton corporate edition, but all it is is just a realtime virus protector/scanner, it does not have any options. i wanted to like edit this without downloading anything else

sparsely
10-15-2003, 06:29 AM
you would add a line like this:

127.0.0.1 jdennis.net

127.0.0.1 is the loopback address of your NIC, which means when something tries to resolve the domain name jdennis.net,
it will try to do it locally, which, of course, doesn't host jdennis.net....so the communication fails.

nikita69
10-15-2003, 06:48 AM
Allow me to introduce u to some of my tips:

HERE (http://www.klboard.ath.cx/index.php?showtopic=64831&view=findpost&p=499791) and HERE (http://www.klboard.ath.cx/index.php?showtopic=64831&view=findpost&p=567015)

slim150
10-15-2003, 02:33 PM
i added 127.0.0.1 jdennis.net to my hosts file, but it still let me access jdennis.net when i tried to go to it. Did i mess up? what can i do?

slim150
10-15-2003, 05:07 PM
ne one?

nikita69
10-15-2003, 06:10 PM
make a copy of hosts file, then follow my 2 links above from scratch. when ur done, just add 127.0.0.1 or 0.0.0.0 (tab) and the site's name (confirm it's spelling first).

Note, u cannot mix 127.0.0.1 & 0.0.0.0 in HOSTS, EITHER OR, NOT BOTH.

nikita69
10-15-2003, 09:32 PM
in addition to above, use these from dos.

Who is listening? Use this syntax: netstat -an |find /i "listening"
Save who is listening to a text file: netstat -an |find /i "listening" > c:\openports.txt
Who is established? Use this syntax: netstat -an |find /i "established"