Blocking Rogue Websites by Using HOSTS File
By Gina on October 20, 2009 | Security basics, Rogue Website, malicous website, block website, block malicious website, hosts file
What is a HOSTS file?
The HOSTS file provides the instructions for the web browser on how to open a certain website when the user types in the address. The website opens if no record about it is found in the HOSTS file. If, however, a record of a requested website is found, the web browser then opens a website from the IP address found on the HOSTS file.
Why do I need to block websites?
Modifying your computer’s HOSTS file is the best way to block malicious websites. These websites might become a problem if your system becomes infected with browser hijackers that come with malware or spyware programs. Browser hijackers redirect your web browser to rogue websites that may cause some serious problems. Not only these websites advertise fake software or promote various online scams, but they might even infect your computer with system parasites without you being aware of it. So it is very important to block these malicious websites in order to keep your computer safe.
How to block rogue websites by using HOSTS file
Find and open the HOSTS file.
You may find the Hosts file in C:\WINDOWS\system32\drivers\etc.

Open the file using WordPad or any other text editor.

Type in the website you want to block.
The entry must include two elements – the IP address and the website address that you want to block. Type in 127.0.0.1 for the IP address, leave a space and then type the website address. 127.0.0.1 is the IP address of your computer, if the address leads to 127.0.0.1, the website cannot be accessed. This is an example of how to block antivirsystem.com

If a browser hijacker tries to open antivirsystem.com, a blank page on your browser will appear instead.
More Security basics news
Protect your Facebook logins on Apple and Android devices!
Facebook credentials are being vulnerable and are accessible from Apple and Android devices because they aren't protected very well and can be reached to other applications and USB connections.All credentials can be obtained by rogue program or via USB connections because data on mobile devices aren't encrypted and left in a temporary folder which can be read by malicious programs. Read more.- Data breaches discovered overdue, Verizon reports
- Frauds versus security tools versus trust issues
- Reminder after Zappos hack: how to protect yourself online?
- Apple's iPhone 4 more vulnerable after update
- Know your enemy - Cybercrime
- Don't get loose! Holiday scams are still circulating on the web
- Protect yourself: holiday online phishing is on
- New rogue AV family invades computers
- Threats increase for Android
- Friends can help when your Facebook is hijacked








