<< Back to Script Library

Redirect URLs to 127.0.0.1 in HOSTS file

This script can be used as a quick way to block access to a URL. The provided URLs (comma separated) are placed in a ‘ControlUp’ section of the HOSTS file, where they are directed to 127.0.0.1. As a result DNS lookup of these URLs always point to home, essentially preventing access to a website unless you know the IP number.
After this the command IPCONFIG /FLUSHDNS is run to clear the DNS cache.

Version: 1.4.19
Created: 2020-03-30
Modified: 2020-03-30
Creator: Ton de Vreede
Downloads: 18
Tags: hosts ip blocking
The Script Try this script with ControlUp Copy Script Copied to clipboard
START YOUR TRIAL

Get Your Download Link

Gain access to ControlUp from your PC. Register and get a link to start your Free Trial.