I want to code a standalone app in java to control access to restricted websites while kids use internet when parents are not around. The main idea is to block the adult/unwanted websites based on the person who is browsing. The use-case goes like this:
1.The user opens a browser. 2.Our app (which is running in the background) should pop up an authentication box and ask the user to enter a password. 3.Based on the password entered, the app would identify the user as an adult or a kid. 4.If adult, there will be no restriction on websites. 5.If kid, then the following things must happen, (a)All the requested URLs from the browser must be logged in a log file. (b)Adult/unwanted websites must be blocked from opening and a warning page must be displayed in the browser.
My question is: can this app be implemented in java? If yes how? How can i monitor the responses and filter them based my conditions? I thought it might be possible by using socket programming in java.
Help of any kind is appreciated.