Share via

How to block "http & https" URLs

Anonymous
2016-04-19T20:37:05+00:00

How to block "http & https" URLs from any computer?. I mean how I can disable those URLs for not to have access to it? Thank you

Windows for home | Windows 11 | Security and privacy

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

8 answers

Sort by: Most helpful
  1. Anonymous
    2016-04-20T13:55:13+00:00

    Disconnect it from the internet :)

    4 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2016-04-20T11:02:04+00:00

    Hello Luguy,

    Thank you for posting on Microsoft Forum.

    I would recommend not to disable any of these protocols.

    The Hypertext Transfer Protocol (HTTP) is an application protocol for distributed, collaborative, hypermedia information systems. HTTP is the foundation of data communication for the World Wide Web. Whereas HTTPS consists of communication over Hypertext Transfer Protocol (HTTP) within a connection encrypted by Transport Layer Security or its predecessor, Secure Sockets Layer. The main motivation for HTTPS is authentication of the visited website and protection of the privacy and integrity of the exchanged data.

    If you disable any of these you won’t be able to access any webpage or any website.

    I hope this information helps. Please reply us back if any further issue with Windows, we’ll be glad to assist you.

    Sarandeep S - Microsoft Support.

    4 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2016-04-20T16:46:58+00:00

    Thank you Singh Sarandeep. I want to know how to prevent the access to Webpages, social media, etc. by a Router, Firewall or software installed in the computer, that allow me to block the access to online of certain websites.

    2 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2016-04-22T06:57:38+00:00

    Hello Luguy,

    Thank you for getting back to Microsoft Community.

    You can certainly block certain websites that you want to. You can follow the Steps mentioned below. These should resolve the issue for you.

    Method 1

    You will not be able to block website access using Windows firewall but you can use Internet explorer to access to the websites by adding those websites in the restricted sites.

    a)   Click the Start button, click Control Panel, type Internet options in the search box, and then click Internet Options.

    b)   Click the Security tab, click a restricted sitesand then click Sites.

    c)    To add a site, type the URL into the Add this website to the zone box, and then click Add.

    For further reference you may refer to the following link.

    http://windows.microsoft.com/en-US/windows7/Why-cant-I-open-or-copy-files-from-the-web

    Method 2

     You can block the website by making changes to the host file.

    Note: You will need "Administrative" privileges to make the following changes. This means that you are the primary user of the computer, and have the passwords for its use.

    1. Open My Computer and search your "C:" drive. To block any website, on every browser, you need to access and edit your "HOST" file. This file helps convert URL's, like www.google.com, to a numerical DNS address. However, you can use this conversion point to block your computer from ever accessing certain websites with a little modification. If you don't see the folder "Windows" in C:, then look for it in another lettered drive. C is by far the most common drive for Windows, but it could be in any drive if you installed Windows yourself.
    2. Find the "etc" folder in your drivers. To get there, click on Windows –>System32–>drivers–>etc. In the etc folder, look for the file "Hosts." The final location you're heading for is C:\WINDOWS\system32\drivers\etc. You can type this into the top bar of My Computer if you're having trouble. You can also find this by typing "notepad C:/Windows/System32/ drivers/etc/hosts" into a Command Prompt window. To use Command Prompt, find and open the program from the Start menu
    3. Open the file "hosts" with Notepad. Double-click on Hosts and choose Notepad when asked which program to use. This allows you to edit the file and block certain sites. If you do not get the option to use Notepad, open the application separately. Then click "File" → "Open" in Notepad and find Hosts like you did before. Click on it to open the file.
    4. Scroll to the empty space at the bottom of the file. There will be a lot of code and text, but you don't have to touch any of it. Instead, scroll all the way down to the bottom, where the last line should be something resembling "127.0.0.1 localhost." Do not edit or change anything as you're working. This file is essential to internet connections, and all you need to do add a few lines at the bottom to block websites.
    5. Hit enter to make a new line at the very bottom. Start your new line right underneath the last "localhost" line.
    6. Block websites by writing "127.0.0.1," followed by the website URL. At the beginning of the line, write 127.0.0.1, hit the space bar, and then write out the URL of the website. For example, to block Google, you'd write "127.0.0.1 www.google.com." Do not add the "http://" to the website URL, or it will fail to block.
    7. Add additional websites on separate lines. If you want to block multiple sites, simply hit "enter" again to get on a new line. Add the 127.0.0.1 and then the website. There is no limit to the number of sites you can block.
    8. Save the file. Once you're done blocking sites, click on "File" → "Save." Close out any browsers you have open, then reopen them. Your sites should be blocked on all internet browsers.

    I hope this information helps. Please reply us back if any further issue with Windows, we’ll be glad to assist you.

    Sarandeep S - Microsoft Support.

    1 person found this answer helpful.
    0 comments No comments
  5. Anonymous
    2016-04-20T16:48:38+00:00

    I didn't explain properly in my first question.

    0 comments No comments