Skip to content

Commit

Permalink
create noindexplus plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillerv committed Aug 14, 2023
1 parent 65a6007 commit 30acd76
Show file tree
Hide file tree
Showing 7 changed files with 252 additions and 662 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.idea
860 changes: 200 additions & 660 deletions LICENSE

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions LICENSE-3RD-PARTY.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
-----------------------------------------------------------------------------
The MIT License (MIT)
applies to:
- plugin-norobots, Copyright (c) 2022 Micro.blog
-----------------------------------------------------------------------------
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# plugin-noopenai
Micro.blog plugin for people to disallow OpenAI from ingesting their content
# plugin-noindexplus
Micro.blog plugin for people to disallow search engines and OpenAI from ingesting their site's content.

## Acknowledgements
This repo is modified from [plugin-norobots](https://github.com/microdotblog/plugin-norobots)
1 change: 1 addition & 0 deletions layouts/partials/noindex.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<meta name="robots" content="noindex">
15 changes: 15 additions & 0 deletions layouts/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Block Adsbot, which must be named explicitly according to Google.
User-agent: AdsBot-Google
Disallow: /

# Block ChatGPT User plugins
User-agent: ChatGPT-User
Disallow: /

# Block ChatGPT crawler
User-agent: GPTBot
Disallow: /

# Block all crawlers
User-agent: *
Disallow: /
8 changes: 8 additions & 0 deletions plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"version": "1.0.0",
"title": "No Index+",
"description": "Adds a custom robots.txt file that prevents OpenAI as well as search engines from indexing & ingesting your site's content.",
"includes": [
"noindex.html"
]
}

0 comments on commit 30acd76

Please sign in to comment.