Bot whipping

I finally got round to doing something about the Alexa crawler tampering with the cookies on the Recycling Group finder after Patrick Joyce commented on my previous post.

There’s no reason for me to store information in the cookies for bots visiting my site so I just disabled them for the Alexa crawler (any request where the user agent string matches ia_archiver) by adding a single line to my ApplicationController class:

It wasn’t a major pain in the arse, but it’s a few less emails to delete every day!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s