Re: block website using c++
What if the IP address of "asos.co.uk" will be used rather than "asos.co.uk" text?
Re: block website using c++
Quote:
Originally Posted by
VictorN
What if the IP address of "asos.co.uk" will be used rather than "asos.co.uk" text?
Thanks for reply, yeah basically i want to input both ip address and website name in teh code. All I am interested in little help to get me started ..
Re: block website using c++
If you are wanting an external C++ program to block a web browser from opening pages based on string matching within the C++ program? Can't be done.
Now...if you want to have that C++ program host a web browser object, then that is possible.
Re: block website using c++
Quote:
Originally Posted by
PeejAvery
If you are wanting an external C++ program to block a web browser from opening pages based on string matching within the C++ program? Can't be done.
of course that CAN be done.
that's what stuff like internet security software, proxies and firewalls does.
the question is really what do you want it to do, and are you prepared to go through the trouble of writing a (filter) driver or even a kernel driver.
Simplest solution is not writing it yourself, but using the built in internet security features of IE, or using a 3rd party tool like wireshark or a 3rd party firewall.
Re: block website using c++
Quote:
Originally Posted by
OReubens
of course that CAN be done.
that's what stuff like internet security software, proxies and firewalls does.
That's not what I'm talking about. Yes, external programs can manipulate the gateways, rewrite hosts, change dns, but the actual program itself just running with no hooks cannot.