zeldor.biz

Linux, programming and more

Copyright © 2023
Log in

Squid visited sites

January 21, 2011 by Igor Drobot 2 Comments

You have a IP-Address from a PC, and you want to know which web-sites ware visited from this PC.

Grep for PCs IP-Address in the access log of your proxy box.

As result you will get a list with visited sites.

1
grep 172.16.0.5 /var/log/squid3/access.log | cut -d" " -f7 | sort -u | less

grep 172.16.0.5 /var/log/squid3/access.log | cut -d" " -f7 | sort -u | less

Filed Under: Bash, Linux Tagged With: Proxy, Squid

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Comments

  1. someone says

    February 9, 2016 at 11:07

    Hey, the below seems to work better for me:

    sudo grep IP /var/log/squid3/access.log | awk ‘{ print $7 }’ | sort -u

  2. lisa says

    February 3, 2012 at 08:25

    thanks

Leave a Reply

Your email address will not be published. Required fields are marked *