Solved

URL filter

Posted on 1998-11-10
6
266 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
6 Comments
 
LVL 15

Expert Comment

by:NickRepin
Comment Utility
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
Comment Utility
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
Comment Utility
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 15

Accepted Solution

by:
Tommy Hui earned 200 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Do you know of any code samples or documents that show this URL interception?
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now