Extend Rack::Request with CrawlerDetect
masterBy configuring the Rack::CrawlerDetect middleware, you can extend the request object with is_crawler? and crawler_name methods. This approach is more robust than manual detection because it automatically checks 10 different HTTP headers in addition to the HTTP_USER_AGENT.
### Rails
```ruby
class Application < Rails::Application
# ...
config.middleware.use Rack::CrawlerDetect
endRack
use Rack::CrawlerDetect