Hosts file Redirect website to about:blank
I was just curious, how do I redirect a webaddress to a blank page using the windows Hosts file? All I know now is this 127.0.0.1 googleads.g.doubleclick.n开发者_运维知识库et
. So how do I redirect the address to a Blank page?
thanks
You can't.
The HOSTS file assists in name resolution—converting a hostname to an IP address.
about:blank
is a special URI that has nothing to do with name resolution.
You could run a webserver that sends 301 redirects to about:blank
(or just sends blank pages), then add that server's IP address to the HOSTS file.
精彩评论