Search code examples
iplocalhostblocking

How to block 127.0.0.1:8080


I am trying to block http://127.0.0.1:8080/ in C:\Windows\System32\drivers\etc host file. so what i did is:

127.0.0.5 http://127.0.0.1:8080/AccessCtrl/login.jsp

But is not working, i can still access this site.


Solution

  • As I know ,hosts file is for DNS caching .

    I mean one side must be an IP address and the other side must be Domain name server. So you can't do such a thing.