No commit activity in last 3 years
No release in over 3 years
Rack Middleware for detecting robots
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
~> 2.6

Runtime

 Project Readme
== 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.