I have a web browser on the form, kids can use it to browse sites. sometimes, on some sites, I want to filter some images (or just show some images), is it possible to do this? or, have to go low level to filter images?
thanks
bear
Printable View
I have a web browser on the form, kids can use it to browse sites. sometimes, on some sites, I want to filter some images (or just show some images), is it possible to do this? or, have to go low level to filter images?
thanks
bear
What criteria are you going to use for your filter?
for example,
1) I want to show all images, however, if the image's name has 'sex', then not show it.
2) I want to hide all images, however, if the image's name has 'ocean', then show it.
basically, depends on the image name to decide whether show it or not. is this possible to be done with the web browser control?
thanks
No, you won't be able to do it with a webbrowser control, but you can create a proxy server running on localhost that can apply filters you need.
In fact there is a number of ready solutions available on the web - Privoxy, Proxomitron, AdMuncher, etc.
To create your own proxy filter you would need System.Net and System.Net.Sockets namespaces and HttpWebrequest and HttpListener classes.