|
-
Dec 12th, 2006, 05:38 PM
#1
Thread Starter
Addicted Member
URL Follower
here is a challenge or something....
how can my app follow or record and stop URL's sent by Internet Explorer or Mozilla Firefox... i dont care which one. either IE or firefox or both.
the thing is i want to make it like if it IE is going to google redirect it to yahoo automatically. any ideas???
PS: make it easy to understand will ya?
-
Dec 12th, 2006, 06:25 PM
#2
Re: URL Follower
why dont you make your own WebBrowser with the WebBrowser Control? I dont think that you can control other programs like that. I know that it is possible though... hmm.
My usual boring signature: Something
-
Dec 12th, 2006, 06:32 PM
#3
Thread Starter
Addicted Member
Re: URL Follower
nah...
i dont want to create a separate browser(who would use a vb browser???!!)
i want to create an app that stops visitin sites (eg: porn sites)
-
Dec 12th, 2006, 06:37 PM
#4
Re: URL Follower
I don't know of a way to get what URL someone is going to other than FindWindow() API or something like that, which would be tedious.
Or a keylogger that can detect URLs, and you can check If the ParentWindow = IE or FireFox...
Or maybe you can sniff incoming packets to detect what URL they're going to.
Not very good methods but that's all I can think of...
-
Dec 12th, 2006, 06:42 PM
#5
Thread Starter
Addicted Member
Re: URL Follower
yup i can find out what url they are going by combining a lot of consts and api's
but how do i block em out???
and redirect to another one???
-
Dec 12th, 2006, 06:56 PM
#6
Re: URL Follower
If you were able to use the APIs to get the text of the URL box, then you should have the Window handle of the URL box.
You can use the SetWindowText API function to change the URL.
Then you need to get the window handle of the Go button and simulate a mouse click or enter key press on the URL box.
-
Dec 13th, 2006, 12:57 AM
#7
Re: URL Follower
Well how does like Yahoo tool bar do it automaticly?
My usual boring signature: Something
-
Dec 13th, 2006, 01:26 AM
#8
Thread Starter
Addicted Member
Re: URL Follower
thanx DigiRev i will try that
seems like a good idea!
-
Dec 13th, 2006, 01:54 AM
#9
Re: URL Follower
 Originally Posted by dclamp
Well how does like Yahoo tool bar do it automaticly?
Don't know, didn't make it. 
But since it's built into IE/Firefox, then it's probably already aware of the text in the URL box and current URL being visited.
I think the web browser exposes those things to the ToolBar.
But that's just a guess.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|