• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 275
  • Last Modified:

URL filter

I need to write a URL filter so I can prevent people who use
a computer from accessing certian websites. I got the Microsoft Internet Client SDK and I looked at creating a pluggable protocol handler, but now I'm thinking that that's the wrong place to start.

Does anyone know how this is done? Does anyone know of any source or documents that touch on this?

Corey
0
cdgough
Asked:
cdgough
1 Solution
 
NickRepinCommented:
Create your own wsock32.dll which contans all functions from original dll. Rename original dll. Most of the functions in your dll will be only a thunk which will call appropriate function in renamed original dll.
But some of your functions will check their parameters and return error result if user tries to call to restricted sites.
This will works for all winsock apps - explorer, ftp, etc.
That's the way (two dlls - original and fake) the MS Proxy server works.

0
 
cdgoughAuthor Commented:
Thinks Nick. The only problem I had with that solution is that so many developers already do that. When you chain together the content filters, proxy servers, the original .dll and all the other ones it seems like you are bound to get some unwanted side effects. I'm wondering if it would be possible to do the same type of thing by rewriting the .dll for the http:// protocol handler.
0
 
sbeebeCommented:
I have been looking into the same subject (see Q.10094773). Unfortunately I have not found a satisfactory answer yet. But I have come across some documents that may be of interest. Here are the links:

http://www.microsoft.com/msj/0997/hood0997.htm
http://www.sstinc.com/winsock.html
http://www.win-tech.com/toolkit.htm (this one recommended to me by mite51)

If somebody comes up with an answer please post it on my question as well.
0
Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

 
Tommy HuiCommented:
If you are targetting IE, your best bet is to use DDE. Search for Dynamic Data Exchange Support in Microsoft Internet Explorer
in MSDN. In particular, search for RegisterURLEcho, so your application can get notified of when an URL is loaded, then you can use OpenURL to change it to something more appropriate.

0
 
sbeebeCommented:
I have been looking into the same subject (see Q.10094773). Unfortunately I have not found a satisfactory answer yet. But I have come across some documents that may be of interest. Here are the links:

http://www.microsoft.com/msj/0997/hood0997.htm
http://www.sstinc.com/winsock.html
http://www.win-tech.com/toolkit.htm (this one recommended to me by mite51)

If somebody comes up with an answer please post it on my question as well.
0
 
cdgoughAuthor Commented:
Do you know of any code samples or documents that show this URL interception?
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now