Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: host files

  1. #11
    Senior Member
    Join Date
    Oct 2005
    Posts
    197
    <ip> <host>
    i.e.
    127.0.0.1 localhost

    <EDIT>
    woops! thanks to Tedob1 for catching this one. posting right when ya wake up leads to stupid mistakes.
    meh. -ech0.

  2. #12
    Senior Member
    Join Date
    Nov 2001
    Posts
    4,785
    write the below line in notepad, save it as hosts.bat in your search path. remember to change notepads defaulf file type from ".txt" to "all". now when ever you want to block a site open the run box and enter 'hosts &lt;badsite&gt;.com' and it will be automatically appended to your hosts file


    hosts.bat

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

    echo 127.0.0.1 %1 &gt;&gt;c:\windows\system32\drivers\etc\hosts

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

    the %1 gets changed to the first argument after the batch file name when you run it.
    Bukhari:V3B48N826 “The Prophet said, ‘Isn’t the witness of a woman equal to half of that of a man?’ The women said, ‘Yes.’ He said, ‘This is because of the deficiency of a woman’s mind.’”

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •