Hello,
I am new to VB and am trying to make a program that will search the active window or websites that IE/Mozilla loads and look for bad words and then shut the computer down if it finds them (I know the code to shut the computer down). I don't have a clue how to do this so I need suggestions.
You can make a proxy, and have IE connect to it...
That way, anything that goes through the proxy, you can read/modify. For example, you can replace those bad works with something else. Or instead of that page that has those bad words, you could display a page that has something like "Bad words on the page, you are not alowed to browse it"...
There are a lot of things you could do with a proxy...
I have already modified the hosts file but that only block certain domain names and not specific words, and as for making my own web browser that is just a lot of extra work, I could not hope to make one as good as IE or Mozilla, and I know that it can be done because I have seen programs that do it so I don't know why I should go to all that trouble, I just wanted to do it so that I could make a program and release it as freeware because all of the ones that I have seen are very expensive
Sorry, But I am looking for a program that I can distribute as freeware and a proxy is out of my reach, I only have a dialup connection, is'nt there some code or API that could search the pages as the browser loads them?
Yes, But as I said before, editing the hosts file only blocks/redirects certain domains and I need to be able to block all websites that contain certain words.
Originally posted by zachdoty Yes, I could make a very simple browser, but they could just use a different browser and bypass mine.
To not allow that u need to do one of two things, use a proxy like the one up (very good one and working) or make a activex dll to run with explorer (search: extend explorer on google) and check all web pages that are opened, u can make a list of all web pages that are allowed or u can search the html before showing anything and allow/close the window
The best solution (for me) is the proxy up there that CVMichael buit, if u have a firewall problem, just allow one port on the firewall to let packets pass, i'm sure u can do that.
btw, a activex like that one can be considered a trojan. U maybe not find much info about it.
it was too late for me to start messing with my firewall. I just said that it didn't awork for me, and that the cause probably was the Windows Firewall. I'm sure that the one that I had been up against was the same thing, that checked the webpage's name, and only allowed certain ones (internal) through. I've also seen one that sent a different IP address, that allowed you to select the proxy server that you wanted, that let you surf anonymously.
Not sure what it was called, but it wouldn't work on my cable modem at the time, as they were blocking ports.
when i said proxy i really wanted to say it. Proxy one computer that have your modem connected to it and not shared on netword. set up the proxy in it and install on both computers tcp/ip then make your computer use the proxy that is runing in the computer that it's connected to the inet.
But for a proxy don't I need two computers (Server And Client)? And even then, it would be very slow because I only have dialup, and it wouldn’t be a program that I could release to the public.
I was trying to make this program so that it could just be installed and it would work, without having to configure and go though a proxy running on dialup, because I would like to release it as freeware to the public.
A friend of mine just recommended that I use JavaScript to make a browser add-on, I know that this is not a JavaScript forum, but if anyone knows of the feasibility of doing this I would like some input and ideas.
Originally posted by zachdoty But for a proxy don't I need two computers (Server And Client)? And even then, it would be very slow because I only have dialup, and it wouldn’t be a program that I could release to the public.
I was trying to make this program so that it could just be installed and it would work, without having to configure and go though a proxy running on dialup, because I would like to release it as freeware to the public.
A friend of mine just recommended that I use JavaScript to make a browser add-on, I know that this is not a JavaScript forum, but if anyone knows of the feasibility of doing this I would like some input and ideas.
Javascript can be turned off in the browser. I personally have no use for JS.
It's simple, turn the proxy on, on the computer you are using, and in IE configure the proxy to "localhost", and port 8888, that's all there is to it !!
I tried the proxy and I was able to load some sites but many (or most) links would not work for some reason, when I clicked them nothing happened.
But I think that I am finally convinced that this is the best way (or at least a good way) to make a content filter, but there is one other thing, is there some way that I can make the proxy only except connections from localhost?
Thanks For Your Help~!!!
Zach Doty
thats what a proxy does. all connections go through it when you check the box. you can also use the IP address of the machine that you want the proxy to be on. maybe the trouble I had was trying to use the IP address of the machine that I was on, instead of localhost, (or 127.0.0.1) as I've seen it done before, but I think that it would have worked without my firewall blocking the port. I'll have to try it again tomorrow.
Originally posted by zachdoty I tried the proxy and I was able to load some sites but many (or most) links would not work for some reason, when I clicked them nothing happened.
But I think that I am finally convinced that this is the best way (or at least a good way) to make a content filter, but there is one other thing, is there some way that I can make the proxy only except connections from localhost?
Thanks For Your Help~!!!
Zach Doty
I've spend about 2 hours making that program (as it is attached in that post), so don't expect it to be perfect, it still needs a lot of work to make it perfect.
And yes, you can make the prooxy accept only localhost connections, you have to chage the code in the SckIN_ConnectionRequest sub, put ALL the code in that sub in an IF statement, something like:
If SckIN(0).RemoteHostIP = "127.0.0.1" Then
' the rest of code in that function
End If
One thing to note: when you click on a link in the browser, the proxy connects to the web-server, download ALL the web-page, THEN it transfers all the data at once to the browser. That's why it may apear slower because nothing is loaded in the browser until it's all done.
If i were you, I would either make it show the progress (from the proxy) in an tray icon, or i would make the form very small, make it always on top, and show the progress there... that way, the user won't think that the browser is not working...
Last edited by CVMichael; Nov 27th, 2004 at 01:37 AM.
And one more thing, right now, the proxy does not support "chunked" data. Some web-servers do not give the total data length in the header, but instead it gies the total data to come in a chunk, and it may be more than one chunk...
The proxy I made, it's always expecting the data length to be in the header.