Take the 2-minute tour ×  I am looking for a plugin or software
to control the browser for following functionality.  When user
submitted request(URL) from browser that request hitting my
application(it is running on local PC) and it is comparing with
predefined list of URLs , if that requested URL is available in
predefined list it will block response other wise it will give
normal response  I am looking for a method that does not use the
hosts file, or a proxy.  share|improve this question sounds like
the wrong tool for the job, by a longshot! because java normally
only works inside or rather as a virtual machine and doesn't see
outside that. and normally one uses a (web) proxy server to
block sites. It might be possible though. But how to do it in
java is a programming question, for stackoverflow. should be
migrated there –  barlop Oct 13 '11 at 11:54 I don't even think
the wrong tool can even be used in a case like this. The user
can simply uninstall Java which makes your program not run. – 
Ramhound Oct 1