You are not logged in.

#1 2010-10-17 16:31:25

sweetthdevil
Member
Registered: 2009-10-20
Posts: 417

Script to monitor Browsing & send email while certain word/website

Hi all,

I need to write a Shell Script monitoring firefox browsing and it need to send an email when certain site and key word are use.

So I will assume the script will have to start firefox to allow him to monitor input search word and website address? I would also like to use my gmail account to send the email.

So if the user will search for the word "example" the script will send an email to warn the admin; or if a certain address is access "example.com" the script will send an email to warn the admin.

The users in questions are not very advance so I am not worry that they will check the address to launch their firefox, but the script need to be transparent to them.

Any suggestion on how to approach the issue?

Many thanks,

Sweetthy,

Offline

#2 2010-10-17 17:25:31

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Script to monitor Browsing & send email while certain word/website

Could you please provide some information about how this script will be used? Why do you want to do this?


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2010-10-17 17:40:15

sweetthdevil
Member
Registered: 2009-10-20
Posts: 417

Re: Script to monitor Browsing & send email while certain word/website

Well the script need to run in the background, so either start when the user log on, or simply when the user start Firefox to browse; and then when define words are search in google, or define website are visited the script will send an email to warn me.

I want to monitor use of prohibited website to download copyright files - I cannot block site like rapidshare and co as we use it to share working large files.

So basically instead of having to search couples of internet history (which could be deleted) I will automatically be warn. 

I hope that help,

Offline

#4 2010-10-18 16:37:18

juster
Forum Fellow
Registered: 2008-10-07
Posts: 195

Re: Script to monitor Browsing & send email while certain word/website

I think this is more commonly accomplished with a web proxy. You could configure every computer to use a web proxy on your local network or setup your router (if you have a good one) to forward all web requests on port 80 to the local proxy. I found this link while googling 'monitoring web proxy': http://ubuntuforums.org/showthread.php?t=655460

Offline

#5 2010-10-18 23:43:53

sweetthdevil
Member
Registered: 2009-10-20
Posts: 417

Re: Script to monitor Browsing & send email while certain word/website

Cheers for the answer, but if I am correct Squid will log - what I am after is to get email right away when it happen with the search words or the website.

Offline

#6 2010-10-19 11:49:33

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Script to monitor Browsing & send email while certain word/website

You could parse the logs...


Website - Blog - arch-home
Arch User since March 2005

Offline

#7 2010-10-19 16:23:59

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Re: Script to monitor Browsing & send email while certain word/website

You could have iwatch parses your logs and email you...
http://iwatch.sourceforge.net/documentation.html

Offline

Board footer

Powered by FluxBB