How to block a website using java program without using proxy and hosts file?
<p>I am looking for a plugin or software to control the browser for following functionality.</p>

<blockquote>
  <p>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</p>
</blockquote>

<p>I am looking for a method that does not use the hosts file, or a proxy. </p>
