Java code for website blocking

beniyam

Honorable
May 3, 2012
1
0
10,510
i want to block/unblock websites using java programattically at the server side. could you give me some codes for this.

thank you!!!
 

psaus

Distinguished
Jun 13, 2006
37
0
18,590
I apologize for not answering your question as you asked, as I don't have java code for such a thing.

BUT, I can recommend OpenDNS. Point your DNS servers there, create a white and/or blacklist of sites you want. Nice and easy, super secure.
 

jaquith

Distinguished
Feb 8, 2009
84
0
18,590
If you have no use for Java then uninstall it and disable. You can also raise the security levels of your browser. There are 'plug-ins' like Ad Block that disable Java to sites.

Java choices: Enable (default), Disable or Prompt:
Example Chrome:
rrapd.png


Example IE:
ie9-disable-javascript-6.png