-
Notifications
You must be signed in to change notification settings - Fork 2
experteer/rack_detect_robots
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
== 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.
About
Detect Google, Yahoo, .... when they crawl you
Resources
Stars
Watchers
Forks
Packages 0
No packages published