Today help a friend to do a simple Web content filtering system, the system to monitor the illegal content of the page, when the illegal content encountered, no longer display the original page, but the user is prompted to try to access the page has illegal content.
When it comes to web content filtering, I immediately think of the socket API monitoring, but after trying to give up, because to change the output in the browser, it is still more troublesome.
There is also the use of browser hijacking technology, that is BHO (Browser helper object, Browser Helper objects, http://baike.baidu.com/view/362533.htm).
I finally chose to use this approach, mainly referring to the following 4 articles, especially the "Mimefilt Internet Explorer demo MIME Filter" helps the most.
Use effect:
Architecture of the Software:
Main references:
1.http://www.vckbase.com/document/viewdoc/?id=1426
How to customize your Internet Explorer browser with BHO
2.http://blog.csdn.net/lion_wing/archive/2006/06/27/839134.aspx
Filtering the source code of the Web page via MIME filter technology
3.http://blog.csdn.net/lion_wing/articles/534716.aspx
HTML Code Filtering Technology
4.http://support.microsoft.com/kb/260840
Sample:mimefilt Internet Explorer Demo MIME Filter
The compiled program is downloaded here:
Click to download the Web content filter program
Download the source code here:
Click to download Httpcontentfilter.zip (vc++2003)
Click to download Httpcontentfilter.rar (vc++6.0)
Web content filtering system based on browser BHO technology