Socket
Book a DemoInstallSign in
Socket

laws_of_robots_txt

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laws_of_robots_txt

0.0.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

LawsOfRobotsTxt

  • A robot may not index staging servers
  • A robot must obey the sitemap
  • A robot may not injure SEO or, through inaction, cause SEO to come to harm.

Installation

Add this line to your application's Gemfile:

gem 'laws_of_robots_txt'

And then execute:

$ bundle

Be sure to remove public/robots.txt, if it exists

Usage

LawsOfRobotsTxt installs a rack middleware into your application which renders a different /robots.txt based on the request's domain.

It looks in config/robots/ for a file named <DOMAIN>.txt, for example, config/robots/www.example.com.txt. A server restart is required to pick up changes.

If no file exists for the requests domain, it renders a default

# Robots not allowed on this domain
User-Agent: *
Disallow: /

Contributing

  • Fork it ( http://github.com/freerunningtech/laws_of_robots_txt/fork )
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

FAQs

Package last updated on 25 Nov 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.