Solved

Get URL from netscape and/or internet explorer

Posted on 1998-05-13
4
178 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
ID: 1345245
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
ID: 1345246
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
ID: 1345247
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
ID: 1345248
Thanks...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to draw animated progressbar in Tvirtualstringtree 5 115
Simple Delphi Question 9 83
Working with hours 3 46
PHP preg_replace code convert to Delphi 14 32
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

919 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

18 Experts available now in Live!

Get 1:1 Help Now