Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
== Rack Detect Robots == It's a simple Rack middleware to detect if the request is from one of the known robots (Googl, Yahoo,) == Usage (Rails 3) == Add it to your Gemfile: gem "rack_detect_robots","0.0.1" Ad it to your Rack stack: use Rack::DetectRobots In your application_controller.rb you can detect a robot with env['rack_detect_robots'].robot? and get it's matched name with env['rack_detect_robots'].robot_name That's it.