• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java code to block websites?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hiii Friends
I am new to java world, Thanks for your suggestion......
Actaually i want to devlope a proxy in java which will block the selected websites while opening the browser ,without changing the browser setting or changing in hosts file . Can anybody help me on this.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the JavaRanch. I've removed your email because we prefer that you use the forum, not email.
Are you talking about a browser plugin? I'm not aware of any browsers that use Java as a plugin language (Firefox uses JavaScript, IE uses C++ or C#). A Java Applet will not work because it runs within the browser sandbox and can't prevent pages from being loaded. If you really want to use Java, you may be able to write a proxy and set up your browser to go through it.
Since this has nothing to do with Struts, I'll move it to a more appropriate forum.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic