Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to log all sent URL from brower(IE, Firefox, chrome) to a file?

Status
Not open for further replies.

theresatan

Programmer
Mar 18, 2002
101
US
Hi,

Can you give me a light on it?
Any function, script or third party tool and so on.

Thanks.

Theresa
 
Hi

Theresa said:
How to log all sent URL from brower(IE, Firefox, chrome) to a file?
Huh ? I am afraid I not understand your request.
[ul]
[li]The requests made by the browser to your server, are logged by the web server.[/li]
[li]The requests made by the browser to other servers, are none of your business.[/li]
[/ul]
Please explain what exactly you want.


Feherke.
 
Sorry for not clear. What I want to do is:

When you type ' in the browser (ex: IE), then the browser will look up the DNS and sent the request to youtube.com. I want to catch the string ' and log it to a text file.

If you need more explain, please let me know.

Thanks.
 
Hi

That information should be available in the browser's history. ( Excepting the request made in private browsing mode. )

Or you can install a browser extension or user script to do such logging.

But I see no way to use [tt]perl[/tt] for other purpose than analyzing some other application's log.

If you want to spy somebody's browsing, you could have more luck asking in your operating system's forum. By the way, if you have a firewall, that could also have a useful log.


Feherke.
 
feherke

Thanks for your quick response.

I will look for the OS forum.

The purpose is for time management.

I want to write a trigger to limit my time spending on certain entertainment website.

Theresa
 
Hi

Theresa said:
I want to write a trigger to limit my time spending on certain entertainment website.
[tt][blue][small][ignore][off-topic][/ignore][/small][/blue][/tt]
Hmm... This could be solved in FireFox with Greasemonkey and a user script like this :
JavaScript:
[gray]// ==UserScript==[/gray]
[gray]// @name           Too Much Fun[/gray]
[gray]// @namespace      .[/gray]
[gray]// @include        [URL unfurl="true"]http://tek-tips.com/*[/URL][/gray]
[gray]// @include        [URL unfurl="true"]http://www.tek-tips.com/*[/URL][/gray]
[gray]// ==/UserScript==[/gray]

window[teal].[/teal][COLOR=darkgoldenrod]setTimeout[/color][teal]([/teal][b]function[/b][teal]()[/teal] [teal]{[/teal]
  window[teal].[/teal][COLOR=darkgoldenrod]alert[/color][teal]([/teal][green][i]'You spent 10 minutes on this page.[/i][/green][lime][i]\n[/i][/lime][green][i]Move away !'[/i][/green][teal])[/teal]
[teal]}[/teal][teal],[/teal][purple]1000[/purple][teal]*[/teal][purple]60[/purple][teal]*[/teal][purple]10[/purple][teal])[/teal]
The user script is executed automatically after loading a document from one of the enumerated [tt]@include[/tt] URLs. Of course, if you want to sum up the time spent on each page of a site, that needs some more coding. Or searching on userscripts.org.

Note that some other browsers have similar functionality, but none is scriptable with [tt]perl[/tt].
[tt][blue][small][ignore][/off-topic][/ignore][/small][/blue][/tt]


Feherke.
 
feherke:

Thank you so much again.

This is exactly what I want.

Have a nice weekend.

Theresa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top