Sha256: 36478707dcade57da8cf5c2e01dc4ce026b363a3d62e94d1cc06d25797820a75

Contents?: true

Size: 535 Bytes

Versions: 5

Compression:

Stored size: 535 Bytes

Contents

# Application template recipe for the rails3_devise_wizard. Check for a newer version here:
# https://github.com/fortuity/rails3_devise_wizard/blob/master/recipes/ban_spiders.rb

after_bundler do

  # ban spiders from your site by changing robots.txt
  gsub_file 'public/robots.txt', /# User-Agent/, 'User-Agent'
  gsub_file 'public/robots.txt', /# Disallow/, 'Disallow'

end

__END__

name: BanSpiders
description: "Ban spiders from the site by changing robots.txt."
author: fortuity

category: other
tags: [utilities, configuration]

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails3_devise_wizard-0.2.4 recipes/ban_spiders.rb
rails3_devise_wizard-0.2.3 recipes/ban_spiders.rb
rails3_devise_wizard-0.2.2 recipes/ban_spiders.rb
rails3_devise_wizard-0.2.1 recipes/ban_spiders.rb
rails3_devise_wizard-0.2 recipes/ban_spiders.rb