Skip to content

Rails plugin to match the user agents of various search engines. Suggestions welcome!

License

Notifications You must be signed in to change notification settings

jwarchol/spider_sense

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpiderSense
===========

Use this plugin to determine if a request is from a spider or not. Can be useful in avoiding expensive operations. 


Example
=======

class AwesomeController < ActionController::Base
  
  def index
    if is_spider?
      # Do really cool but expensive stuff
    else
      # just render the stock page for indexing by the spider
    end
  end
end


Copyright (c) 2008 Joshua Warchol, released under the MIT license

About

Rails plugin to match the user agents of various search engines. Suggestions welcome!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages