PluginProbe ʕ •ᴥ•ʔ
Really Simple Security – Simple and Performant Security (formerly Really Simple SSL) / 9.5.11
Really Simple Security – Simple and Performant Security (formerly Really Simple SSL) v9.5.11
9.5.11 9.5.10.1 9.5.10 trunk 9.4.0 9.4.1 9.4.2 9.4.3 9.5.0 9.5.0.1 9.5.0.2 9.5.1 9.5.2 9.5.2.2 9.5.2.3 9.5.3 9.5.3.1 9.5.3.2 9.5.4 9.5.5 9.5.6 9.5.7 9.5.8 9.5.9
really-simple-ssl / security / server / disable-indexing.php
really-simple-ssl / security / server Last commit date
disable-indexing.php 1 month ago index.php 1 month ago
disable-indexing.php
23 lines
1 <?php
2 defined( 'ABSPATH' ) or die();
3 if ( rsssl_is_in_deactivation_list('disable-indexing') ){
4 rsssl_remove_from_deactivation_list('disable-indexing');
5 }
6
7 /**
8 * Disable indexing
9 *
10 * @param array $rules
11 *
12 * @return array []
13 */
14 function rsssl_disable_indexing_rules( $rules ) {
15 $rules[] = ['rules' => "\n" . 'Options -Indexes', 'identifier' => 'Options -Indexes'];
16 return $rules;
17 }
18 add_filter('rsssl_htaccess_security_rules', 'rsssl_disable_indexing_rules');
19
20 /**
21 * Dropped suggestions for indexing in NGINX as indexing in NGINX is by default disabled.
22 */
23