Middleware for detecting crawl bots