No commit activity in last 3 years
No release in over 3 years
A gem that adds no follow tag to all external links.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 9.0
~> 2.10
~> 4.5
~> 0.44.1
~> 1.3

Runtime

>= 4.1.0
 Project Readme

NoFollowExternalLinks

Links that point to external urls are recommended to include a rel=nofollow property to make sure the crawler bots do not follow the content of external resources as your own. This plugin makes it easy to implement that for all existing links on a Rails application.

Usage

This plugin will automatically add a nofollow rel property to all the external links you create using Rails link_to method If you need to add an exception for instance for your own personal blog within a subdomain just add an intializer with the following:

NoFollowExternalLinks.configure do |config|
  config.excluded_urls = %w{https://blog.mydomain.com/}
end

Installation

Add this line to your application's Gemfile:

gem 'no_follow_external_links'

And then execute:

$ bundle

Or install it yourself as:

$ gem install no_follow_external_links

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.