|
-
Oct 14th, 2004, 07:40 AM
#1
Thread Starter
Member
How to stop downloads in a VB built browser
I have a browser built in VB6. I need to stop downloads occurring when a user clicks on a link in a web page.
How do i go about this?
-
Oct 14th, 2004, 10:03 AM
#2
Frenzied Member
You want to stop all downloads? Or just the ones occuring in the browser, like the 'Stop' button in Internet Explorer
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Oct 15th, 2004, 05:54 AM
#3
Thread Starter
Member
Hi,
I have managed to figure out a crude way of stopping the downloads if a user clicks on a link by using BeforeNavigate2 and looking at a list of extensions.
I would like to stop all downloads, but not sure if this is possible as an image is also a download. Wondered if using dhtml.dom (ithink thats right) if i could also create a porn blocker, but have never used this, so any help would be appreciated.
Found the fix above in an article on this site.
Terry
-
Oct 15th, 2004, 10:32 AM
#4
Fanatic Member
Canceling downloads is quite easy. The Web Browser control has a FileDownload event. Use the Cancel parameter to stop the download.
Yes, you can use the DHTML DOM to make a porn blocker. I suggest you read my latest article (Using the Web Browser control, see sig for link). It includes code for a very simple blocker. In the article that is to appear next month I'll include code for a more advanced porn blocker.
Author for Visual Basic Web Magazine
-
Oct 18th, 2004, 04:43 AM
#5
Thread Starter
Member
Hi,
it was your article that i got the fix from, great article and am looking forward to the next one.
Terry
-
Oct 18th, 2004, 10:47 AM
#6
Frenzied Member
Originally posted by TheVader
Canceling downloads is quite easy. The Web Browser control has a FileDownload event. Use the Cancel parameter to stop the download.
Yes, you can use the DHTML DOM to make a porn blocker. I suggest you read my latest article (Using the Web Browser control, see sig for link). It includes code for a very simple blocker. In the article that is to appear next month I'll include code for a more advanced porn blocker.
Why would ANYONE block pr0n? o.0
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
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
|