ARTLUNG
personal website: joe crawford. code. occasional comics. toy robots. bodysurfing. san diego. california. say hi.
since 1998

Resume View Tracker from 2010

Back in 2010 or so when I was looking for work. I wanted to track when recipients were looking at my portfolio, so I added some code to alert me whenever the page was loaded, by anyone.

It seems more innocent than sinister to me now. Note how I had to alter it to filter out web spiders:

$spiders = array(
	'Baiduspider',
	'msnbot',
	'youdao',
	'YandexBot',
	'YodaoBot',
	'KaloogaBot',
	'googlebot',
	'majestic12',
);

And I also had to filter out friends and family I sent the page to to get their feedback, and me when I was at their places.

It’s no longer working code because PHP has added changes to eliminate global variables that are not scoped to the $_SERVER variable. But it’s a fun time capsule.


posted this 1 month ago.
What else did he post in December 2021?

(Thursday December 23rd 2021 at 12:17pm)

Leave me a comment!

This site uses Akismet to reduce spam. Learn how your comment data is processed.