Monday, January 02, 2017

How To Block A Website Using Command Prompt?

Block a website in the computer using the command prompt to restrict its access further. Command prompt is the host for several simple and advanced commands designed to performed basic operations. Blocking any website with command prompt can avoid access to the site with explicit content, spreading the viruses; steal your personal data and sites impacting the children mental behavior.



block-a-website-using-command-prompt
How to block any website using command prompt


Blocking certain websites can be the true remedy. There are several options available to block websites. These options include blocking websites on a router, Block a website using family safety, block a website in windows, block a website using external software and blocking a website in browsers like chrome, Firefox and Internet Explorer. You can consider the one that best works for your needs.

Procedure to block a website using command prompt:

                 Specific websites can be blocked from the command line by running a command to open the windows hosts file. Adding the website you wish to block to the host file and save it to prevent any further access to that specific website domain name. This feature will prevent your children from opening their favorite websites.

1. Press “Windows + R” keys to open run command and type cmd in the empty field. Select OK or press Enter.
block-websites-using-cmd-prompt
how to block a website using command prompt

2. Type “notepad C:/Windows/Sytem32/drivers/etc/hosts” in the command windows.
how-to-block-a-website-using-command-prompt
how to block a website with command prompt

3. Press Enter. Hosts file Notepad will pop-up. This action will require you to edit the Host file. Your Host file is a computer file used to store information on where to find a node on a computer network.
how-to-block-website-using-command-prompt-windows-7
how to block a website using command prompt

4. In the Notepad, you can figure out the last line with 127.0.0.1 localhost and ::1 localhost. Place the cursor at the end of the last line, and Press Enter to create a new line. Type 127.0.0.1, press the spacebar once and then type the address of a website you want to block. 
block-websites-using-command-prompt-windows-7
How to block any website using command prompt in windows

For Example, to block YouTube, Type 127.0.0.1 www.youtube.com on this line.

5. Repeat the same process to add the websites you wish to block, each prefaced with 127.0.0.1 space address of the website. Like this, you can add as many sites as you want this way, but remember you can only add one per line.
 
block-websites-using-command-prompt
how to block websites using command prompt
Note: Do not alter any other text in Notepad.

6. Click File > Save. Click Save, in the save as pop-up window. Do not change the name or save location and ignore any warnings regarding editing the host's file. Close Notepad when finished. Also, exit command prompt window.


block-website-command-prompt
how to block a website using command prompt
Close any open browser windows, and Reboot your computer for the changes to take effect.
Try opening the site you have listed to block. These blocked sites will not open in your browser.
This is an advanced, but the easy method on how to block a website. You can later, unblock websites using command prompt.


This guide on how to block a website using command prompt should have helped you block websites on any device.
If you are aware of any other methods to block a certain method from opening, please let us know through comments.

3 comments:

  1. INSTEAD OF GETTING A LOAN, CHECK OUT THE BLANK ATM CARD IN LESS THAN 24hours {blankatmhaker@gmail.com}

    Am Mark Oscar,I want to testify about Jack Robert blank ATM cards which can withdraw money from any ATM machines around the world. I was very poor before and have no hope then I saw so many testimony about how Jack Robert send them the ATM blank card and use it to collect money in any ATM machine and become rich. I also email him and he sent me the blank card. I have use it to get 70,000 dollars. withdraw the maximum of $5,000 daily. Jack Robert is giving out the card just to help the poor. Hack and take money directly from any ATM Machine Vault with the use of ATM Programmed Card which runs in automatic mode. email Him on how to get it now via: blankatmhaker@gmail.com or call/Text on +1(406) 350-4986

    ReplyDelete
  2. IN SHORT NOTE WE WOULD LIKE ENLIGHTENING YOU MORE ABOUT JOB OFFERS ON "CRIMINAL MISHAP"

    it reading won't take more than 5mins!
    Know what expungement by hacking does.
    Most criminal conviction records are available to who wants to search for them. Expunging your records will alter your record, removing or diminishing many offenses.
    The details about how the state manages your criminal record after expungement will depend on your state. Regardless of where you live though, expungement allows you to legally answer that you do not have a criminal record.
    In other states like California, you cannot erase a criminal record from public view. But, the disposition of the case will show that the court dismissed the case...
    Now at every aspect of trying to erase your records,
    We imploy a trojan mechanizm called(record sealing).
    Now if an hacker hacks into a data base forgetting to seal up with this particular software!
    The name expunged refreshes and might have several defect.

    ◾WHY HAVE WE EXPLAINED THESE?

    Globalhack team ensures that we pass through every protocol needed to get all sort of Job offers ( FACEBOOK HACK, whatapp NOTCH, IPHONES DECODING, CC FLIP, MONEY FLIPS)of all our clients successful without any platform of complaint laid, thus maintaining the "TRUST" of our clients all over the world.
    Feel free to ask more questions and job offers about these,
    Write us on:
    ◾Globalhacktech@gmail.com
    Thank you...!

    ReplyDelete
  3. VERY IMPORTANT
      "HACKING"!!  For years now has been a seriously sort of problem.. So beware of  scammers pretending to be hackers!!!
    We've helped  organisations and so many sites, Bank Accounts, school upgrades also clear criminal records of all sort and in short timing hacked petty cyber sites accounts like Skpe, Fb, Whatsapp, Tinder, Twitter but these are significant experience a good and effectively recognized organisation must firmly ascertain and minorly our "AIM" here.

    1, the aim is to render proficient solution to those having cyber issues and technically needs a hacker to get their job done effectively fast..!! 

    2, to recruit real hackers (gurus only) in need of job with or without a degree..!! 
    So if you ever need a job done or interested in joining the organization (an online binanry exam will be set for those in need of these job) you can write us on
    Globalhacktech@gmail.com

    ReplyDelete