Changeset 3101287
- Timestamp:
- 06/11/2024 03:08:54 PM (22 months ago)
- Location:
- simple-noai-and-noimageai/trunk
- Files:
-
- 3 edited
-
includes/noai-settings.php (modified) (2 diffs)
-
noai.php (modified) (3 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-noai-and-noimageai/trunk/includes/noai-settings.php
r2997830 r3101287 210 210 <input type="checkbox" id="anthropicai" name="noai_robots_options[anthropicai]" value="anthropicai" <?php echo isset( $robots_options['anthropicai'] ) ? ( checked( $robots_options['anthropicai'], 'anthropicai', false ) ) : ( '' ); ?>> 211 211 <label for="anthropicai"><?php esc_html_e( 'Anthropic-AI', 'noai' ); ?></label> 212 213 <!-- Added 6-11-24 /--> 214 215 <input type="checkbox" id="applebot" name="noai_robots_options[applebot]" value="applebot" <?php echo isset( $robots_options['applebot'] ) ? ( checked( $robots_options['applebot'], 'applebot', false ) ) : ( '' ); ?>> 216 <label for="applebot"><?php esc_html_e( 'Applebot-Extended', 'noai' ); ?></label> 217 218 <input type="checkbox" id="bytespider" name="noai_robots_options[bytespider]" value="bytespider" <?php echo isset( $robots_options['bytespider'] ) ? ( checked( $robots_options['bytespider'], 'bytespider', false ) ) : ( '' ); ?>> 219 <label for="bytespider"><?php esc_html_e( 'Bytespider', 'noai' ); ?></label> 220 221 <input type="checkbox" id="cohere" name="noai_robots_options[cohere]" value="cohere" <?php echo isset( $robots_options['cohere'] ) ? ( checked( $robots_options['cohere'], 'cohere', false ) ) : ( '' ); ?>> 222 <label for="cohere"><?php esc_html_e( 'cohere-ai', 'noai' ); ?></label> 223 224 <input type="checkbox" id="diffbot" name="noai_robots_options[diffbot]" value="diffbot" <?php echo isset( $robots_options['diffbot'] ) ? ( checked( $robots_options['diffbot'], 'diffbot', false ) ) : ( '' ); ?>> 225 <label for="diffbot"><?php esc_html_e( 'Diffbot', 'noai' ); ?></label> 226 227 <input type="checkbox" id="imagesiftbot" name="noai_robots_options[imagesiftbot]" value="imagesiftbot" <?php echo isset( $robots_options['imagesiftbot'] ) ? ( checked( $robots_options['imagesiftbot'], 'imagesiftbot', false ) ) : ( '' ); ?>> 228 <label for="imagesiftbot"><?php esc_html_e( 'Imagesiftbot', 'noai' ); ?></label> 229 230 <input type="checkbox" id="perplexity" name="noai_robots_options[perplexity]" value="perplexity" <?php echo isset( $robots_options['perplexity'] ) ? ( checked( $robots_options['perplexity'], 'perplexity', false ) ) : ( '' ); ?>> 231 <label for="perplexity"><?php esc_html_e( 'Perplexitybot', 'noai' ); ?></label> 232 233 <input type="checkbox" id="omigili" name="noai_robots_options[omigili]" value="omigili" <?php echo isset( $robots_options['omigili'] ) ? ( checked( $robots_options['omigili'], 'omigili', false ) ) : ( '' ); ?>> 234 <label for="omigili"><?php esc_html_e( 'Webz.io', 'noai' ); ?></label> 235 236 <input type="checkbox" id="meta" name="noai_robots_options[meta]" value="meta" <?php echo isset( $robots_options['meta'] ) ? ( checked( $robots_options['meta'], 'meta', false ) ) : ( '' ); ?>> 237 <label for="meta"><?php esc_html_e( 'FacebookBot', 'noai' ); ?></label> 212 238 213 239 <?php … … 304 330 function sanitize_noai_robots_options( $input ) { 305 331 $allowed_keys = array( 306 'allrobots', 'gptbot', 'chatgptuser', 'googleextended', 'googleother', 'ccbot', 'anthropicai' 332 'allrobots', 'gptbot', 'chatgptuser', 'googleextended', 'googleother', 'ccbot', 'anthropicai', 'applebot', 'bytespider', 'cohere', 'diffbot', 'imagesiftbot', 'perplexity', 'omigili', 'meta', 307 333 ); 308 334 -
simple-noai-and-noimageai/trunk/noai.php
r3064958 r3101287 7 7 Plugin URI: http://www.foundationwebdev.com/plugins/noai-imageai 8 8 Description: This plugin very simply adds a line of code to your header that tells AIs not to use anything on your website for indexing. It also has settings to disallow certain crawlers in your robots.txt file including GPTBot and Google-Extended. 9 Version: 1.6. 29 Version: 1.6.3 10 10 Author: Aimee Cozza 11 11 Author URI: http://www.aimeecozza.com … … 142 142 $output .= 'User-agent: anthropic-ai' . "\n" . 'Disallow: /' . "\n"; 143 143 $output .= 'User-agent: Google-Extended' . "\n" . 'Disallow: /' . "\n"; 144 $output .= 'User-agent: Omigili' . "\n" . 'Disallow: /' . "\n"; 145 $output .= 'User-agent: OmigiliBot' . "\n" . 'Disallow: /' . "\n"; 146 $output .= 'User-agent: PerplexityBot' . "\n" . 'Disallow: /' . "\n"; 147 $output .= 'User-agent: ImagesiftBot' . "\n" . 'Disallow: /' . "\n"; 148 $output .= 'User-agent: FacebookBot' . "\n" . 'Disallow: /' . "\n"; 149 $output .= 'User-agent: Diffbot' . "\n" . 'Disallow: /' . "\n"; 150 $output .= 'User-agent: cohere-ai' . "\n" . 'Disallow: /' . "\n"; 151 $output .= 'User-agent: Bytespider' . "\n" . 'Disallow: /' . "\n"; 152 $output .= 'User-agent: Applebot-Extended' . "\n" . 'Disallow: /' . "\n"; 153 144 154 } 145 155 … … 173 183 174 184 } 185 186 if ( isset($robots_options['omigili']) && !isset($robots_options['allrobots']) ) { 187 $output .= 'User-agent: Omigili' . "\n" . 'Disallow: /' . "\n"; 188 $output .= 'User-agent: OmigiliBot' . "\n" . 'Disallow: /' . "\n"; 189 190 } 191 192 if ( isset($robots_options['perplexity']) && !isset($robots_options['allrobots']) ) { 193 $output .= 'User-agent: PerplexityBot' . "\n" . 'Disallow: /' . "\n"; 194 195 } 196 197 if ( isset($robots_options['imagesiftBot']) && !isset($robots_options['allrobots']) ) { 198 $output .= 'User-agent: ImagesiftBot' . "\n" . 'Disallow: /' . "\n"; 199 200 } 201 202 if ( isset($robots_options['diffbot']) && !isset($robots_options['allrobots']) ) { 203 $output .= 'User-agent: Diffbot' . "\n" . 'Disallow: /' . "\n"; 204 205 } 206 207 if ( isset($robots_options['cohere']) && !isset($robots_options['allrobots']) ) { 208 $output .= 'User-agent: cohere-ai' . "\n" . 'Disallow: /' . "\n"; 209 210 } 211 212 if ( isset($robots_options['bytespider']) && !isset($robots_options['allrobots']) ) { 213 $output .= 'User-agent: Bytespider' . "\n" . 'Disallow: /' . "\n"; 214 215 } 216 217 if ( isset($robots_options['applebot']) && !isset($robots_options['allrobots']) ) { 218 $output .= 'User-agent: Applebot-Extended' . "\n" . 'Disallow: /' . "\n"; 219 220 } 221 222 if ( isset($robots_options['meta']) && !isset($robots_options['allrobots']) ) { 223 $output .= 'User-agent: FacebookBot' . "\n" . 'Disallow: /' . "\n"; 224 225 } 226 227 175 228 $output .= '# ---------------------------' . "\n" . '# END SIMPLE NOAI BLOCK' . "\n"; 176 229 return $output; -
simple-noai-and-noimageai/trunk/readme.txt
r3064958 r3101287 5 5 Requires at least: 1.2 6 6 Tested up to: 6.5 7 Stable tag: 1.6. 27 Stable tag: 1.6.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 22 22 23 23 1. Upload the plugin folder to your /wp-content/plugins/ folder. 24 1. Go to the **Plugins** page and activate the plugin.24 2. Go to the **Plugins** page and activate the plugin. 25 25 26 26 == Frequently Asked Questions == … … 39 39 40 40 == Changelog == 41 = 1.6.3 = 42 * Added support for AppleBot-Extended, Bytespider, Cohere-ai, Diffbot, ImagesiftBot, PerplexityBot, FacebookBot, and Omigili. 43 41 44 = 1.6.2 = 42 * Support WordPress 6.545 * Supports WordPress 6.5 43 46 44 47 = 1.6.1 =
Note: See TracChangeset
for help on using the changeset viewer.