Solved

URL filter

Posted on 1998-11-10
6
272 Views
Last Modified: 2013-12-03
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
Comment
Question by:cdgough
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 15

Expert Comment

by:NickRepin
ID: 1415953
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
 

Author Comment

by:cdgough
ID: 1415954
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
 

Expert Comment

by:sbeebe
ID: 1415955
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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 15

Accepted Solution

by:
Tommy Hui earned 200 total points
ID: 1415956
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
 

Expert Comment

by:sbeebe
ID: 1415957
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
 

Author Comment

by:cdgough
ID: 1415958
Do you know of any code samples or documents that show this URL interception?
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question