Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Modifying the HOST file


  • Please log in to reply
2 replies to this topic

#1 Desion

Desion

  • Members
  • 135 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:11:09 PM

Posted 18 February 2009 - 12:04 PM

Hey, i was wondering if it was possible to modify the HOST.txt file so that i can block certain file extensions such as .exe,.zip, etc. so that it is blocked from displaying in web browsers. I tried going into the host.txt file and adding "127.0.0.0 .exe" and that didn't make any difference.
Interesting Links:
Softpedia - Online downloads encyclopedia
W3Schools - Website Programming Tutorials
PC World - Everything about technology
Wikipedia - Online Encyclopedia
Photobucket - Free Image Hosting

"I don't support network bridges, they support me."

BC AdBot (Login to Remove)

 


#2 Desion

Desion
  • Topic Starter

  • Members
  • 135 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:11:09 PM

Posted 19 February 2009 - 10:32 PM

B
BU
BUM
BUMP
Interesting Links:
Softpedia - Online downloads encyclopedia
W3Schools - Website Programming Tutorials
PC World - Everything about technology
Wikipedia - Online Encyclopedia
Photobucket - Free Image Hosting

"I don't support network bridges, they support me."

#3 tos226

tos226

    BleepIN--BleepOUT


  • Members
  • 1,588 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:LocalHost
  • Local time:02:09 AM

Posted 19 February 2009 - 10:49 PM

It is not entirely clear what it is you're modifying.
system32\drivers\etc\HOSTS ?
or some other hosts.txt file
HOSTS file has no extension.
That said, if I think what you want is the HOSTS file, then you can't do it. It is meant for IPs, not .exe and other files. For those a firewall of some sort is normally used.

Here is a reference to the HOSTS file I'm talking about.
http://www.bleepingcomputer.com/forums/t/123980/mvps-hosts-file-update/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users