No release in over a year
Simple gem (middlware) to block ChatGPT-User
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
 Project Readme

ChatGPT Blocker

Context: https://platform.openai.com/docs/plugins/bot. Add this gem if you want to block your website to the ChatGPT.

Funny part: gem was generated with ChatGPT too :)

RailsLiveReload

The ChatGPT Blocker gem is a simple middleware for Rails applications that blocks requests with a specified user agent pattern. By default, it blocks requests with the "ChatGPT-User" user agent.

Installation

Add this line to your application's Gemfile:

gem 'chat_gpt_blocker'

And then execute:

$ bundle install

Or install it yourself as:

bash

$ gem install chat_gpt_blocker

Usage

Once you've added the gem to your Gemfile and ran bundle install, the middleware will automatically be included in your Rails application. No additional configuration is needed.

By default, the gem blocks requests with a user agent that matches the "ChatGPT-User" pattern.

License

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