This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <files *.ini> | |
| order allow,deny | |
| deny from all | |
| </files> | |
| <files *.sh> | |
| order allow,deny | |
| deny from all | |
| </files> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteRule ^wp-admin/includes/ - [F,L] | |
| RewriteRule !^wp-includes/ - [S=3] | |
| RewriteRule ^wp-includes/[^/]+\.php$ - [F,L] | |
| RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L] | |
| RewriteRule ^wp-includes/theme-compat/ - [F,L] | |
| RewriteRule (vendor|node_modules) - [R=404,L,NC] | |
| RewriteRule Gruntfile.js - [R=404,L,NC] | |
| RewriteRule gulpfile.js - [R=404,L,NC] | |
| RewriteRule package.json - [R=404,L,NC] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'rest_endpoints', 'disable_default_endpoints' ); | |
| function disable_default_endpoints( $endpoints ) { | |
| $allowed = ['/some/route/here']; | |
| foreach ( $endpoints as $maybe_endpoint => $object ) { | |
| if ( ! in_array($maybe_endpoint, $allowed) ) { |
OlderNewer