Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
hello everyone i have developed a window application in c#. and i want to block websites which are black listed in my application.

now i want to trace/catch browser urls and check, is it available in my database and if exist then block to open in browser.

my target is on any window service or driver or any trick which can help for same..

thanks in advance....
Posted
Updated 28-Jul-15 19:13pm
v2

1 solution

Do not do it on the client machine.

The generally accepted way of doing his is to set up a proxy server on the network.

Configure all clients to use the proxy server, so their http requests are sent to the proxy server.

Then, on the proxy server, you can set rules for what is allowed and what isn't.

If the proxy allows it, it will forward the request to the internet, and when it receives a response, forward that to the client.

Obviously, you need to lock down the clients, so that the proxy settings cannot be changed.

Their are loads of hardware based filtering devices in the market too.

Remember, that client machines are not to be trusted. Putting the filtering logic in at a network level is much more secure.

There is an open source system called SQUID that does this, if you want to look at the code for how it works. Beware, though, that this is large and complex software.
 
Share this answer
 
Comments
mKhemraj 22-Jul-15 2:39am    
thanks for your answer....

but i want block website without change proxy settings so please give any other solution..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900