i have to make a program in C/C++ to be run Client pc(windows platform) for followings:
1. to block access to a site(s), either by drop down menu or user entered.
2. act as a url filter to block any url consisting any word from a given list, for example "Facebook" or a bad word.
progress:
for the problem #1 i have "C:windowssystem32driversetchosts" file i can block unblock any site using data file handling.
I found a program for blocking a site on net which is in attached. for unblocking i will make my code.
For the problem #2 i cannt get any clue to sort the problem! i searched for any system variable that cosists the url requested, so that i can search whether it contains any word in the provided list and block it. In reality i need to block url requested from all browsers, but if i fail to find a common variable i am allowed to run it for specific browser.
this program will always running in background or minimized in tray. and user will only interect with browser
ASKED:
Jul 8, 2011 2:18 PM GMT
UPDATED:
March 31, 2012 9:57:24 PM GMT