If one needs to know when some website has been visited in Mozilla Firefox then go to the default directory and open the
cd ~/.mozilla/firefox/<xyz>.default/ sqlite3 places.sqlite
Issue below SQL command
select visit_date, datetime(visit_date/1000000, 'unixepoch','localtime') as S from moz_historyvisits where place_id in (select id from moz_places where url like 'https://www.google.come%') and S like '2019-01-2%' order by S;
- How do I decode the Last_Date_ Visited field in the places.sqlite db?
- SQLite: Date And Time Functions
- Entity relationship diagram of tables: The Places database
ER diagram looks like this:
… could use this database to collect an overall sample of my web surfing habits, and then plug that data into something like the Unbound DNS resolver to do my own DNS lookups for the places I usually visit. I was doing that with Squid, but it has some limitations for my situation. Maybe this is better (plus, I don’t have to use Squid).