Solved

Get URL from netscape and/or internet explorer

Posted on 1998-05-13
4
173 Views
Last Modified: 2010-04-06
I'm working at a public library, and we want to make some blocking software for out internet computers. Well, to make it short: I need a way to get the URL from a web browser when it tries to contact the host, so I can compare it to a list of forbinnen URL's. I need this for Delphi or by Win32 calls. Can anybody help ?

Thanks in advance
0
Comment
Question by:carceri
  • 2
4 Comments
 
LVL 4

Expert Comment

by:d003303
Comment Utility
Yo,
the same question was asked quite often, but was never answered. This is what you have to do :
Write a stub-layer DLL, i.e. a DLL with the same API interface that passes all calls to the original DLL. Now, depending on your needs, you would have to stub the ws2_32.dll and log some of the the API calls (e.g. GetHostByName) to a file.
This is a LOT of dangerous work to do, be warned ! If your app crashes, the whole networking service on that machine will crash, too.
The easiest way is to set up a proxy server where the internet computers MUST connect through to get into the Internet. There are lots of shareware proxy server out there that allow blocking of special URLs etc., e.g. Spaghetti Proxy Server. Have a look at www.windows95.com for that kind off stuff.

Slash/d003303
0
 

Author Comment

by:carceri
Comment Utility
I will have to discuss the proxy server idea with the others. The other idea seems a bit to dangerous to try out.

Other suggestions are still welcome, but thanks d003303
0
 
LVL 1

Accepted Solution

by:
ssite earned 100 total points
Comment Utility
Different easier way:

Netscape and Internet explorer both support DDE and can return the current url on request. I would constantly look for these clients and if found, get the url. If you want to reject it, just kill that window.

You can find info on microsoft/netscape sites regarding DDE and IE/Communicator/navigator.
0
 

Author Comment

by:carceri
Comment Utility
Thanks...
0

Featured Post

IT, Stop Being Called Into Every Meeting

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

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

10 Experts available now in Live!

Get 1:1 Help Now