Changeset 2805089
- Timestamp:
- 10/26/2022 03:34:21 PM (22 months ago)
- Location:
- rest-api-guard
- Files:
-
- 8 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
rest-api-guard/tags/1.0.1/README.md
r2801542 r2805089 1 1 # REST API Guard 2 2 3 Stable tag: 1.0. 03 Stable tag: 1.0. 4 4 5 5 Requires at least: 6.0 … … 13 13 Tags: alleyinteractive, rest-api-guard 14 14 15 Contributors: s rtfisher15 Contributors: s 16 16 17 17 [![Coding Standards](https://github.com/alleyinteractive/wp-rest-api-guard/actions/workflows/coding-standards.yml/badge.svg)](https://github.com/alleyinteractive/wp-rest-api-guard/actions/workflows/coding-standards.yml) … … 33 33 information with the internet anonymously. This plugin aims to make it easier to 34 34 restrict access to the REST API for your WordPress site. 35 36 37 38 39 35 40 36 41 ### Settings Page -
rest-api-guard/tags/1.0.1/plugin.php
r2801542 r2805089 4 4 * Plugin URI: https://github.com/alleyinteractive/wp-rest-api-guard 5 5 * Description: Restrict and control access to the REST API 6 * Version: 1.0. 06 * Version: 1.0. 7 7 * Author: Sean Fisher 8 8 * Author URI: https://alley.co/ -
rest-api-guard/tags/1.0.1/readme.txt
r2801545 r2805089 1 1 === REST API Guard === 2 Stable tag: 1.0. 02 Stable tag: 1.0. 3 3 Requires at least: 6.0 4 4 Tested up to: 6.0 -
rest-api-guard/tags/1.0.1/settings.php
r2801542 r2805089 7 7 8 8 namespace Alley\WP\REST_API_Guard; 9 10 11 12 9 13 10 14 add_action( 'admin_menu', __NAMESPACE__ . '\on_admin_menu' ); … … 133 137 add_settings_field( 134 138 'anonymous_requests_allowlist', 135 __( 'Anony ous Request Allowlist', 'rest-api-guard' ),136 __NAMESPACE__ . '\render_field', 137 SETTINGS_KEY, 138 SETTINGS_KEY, 139 [ 140 'description' => __( 'Line-seperated allowlist for anony ous requests that should be allowed. All other requests not matching the list will be denied. This setting takes priority over the denylist below. Supports * as a wildcard.', 'rest-api-guard' ),139 __( 'Anonyous Request Allowlist', 'rest-api-guard' ), 140 __NAMESPACE__ . '\render_field', 141 SETTINGS_KEY, 142 SETTINGS_KEY, 143 [ 144 'description' => __( 'Line-seperated allowlist for anonyous requests that should be allowed. All other requests not matching the list will be denied. This setting takes priority over the denylist below. Supports * as a wildcard.', 'rest-api-guard' ), 141 145 'filter' => 'rest_api_guard_anonymous_requests_allowlist', 142 146 'id' => 'anonymous_requests_allowlist', … … 147 151 add_settings_field( 148 152 'anonymous_requests_denylist', 149 __( 'Anony ous Request Allowlist', 'rest-api-guard' ),150 __NAMESPACE__ . '\render_field', 151 SETTINGS_KEY, 152 SETTINGS_KEY, 153 [ 154 'description' => __( 'Line-seperated allowlist for anonyous requests that should be denied. All other requests not matching the list will be allowed. Supports * as a wildcard.', 'rest-api-guard' ),153 __( 'Anonylist', 'rest-api-guard' ), 154 __NAMESPACE__ . '\render_field', 155 SETTINGS_KEY, 156 SETTINGS_KEY, 157 [ 158 'description' => __( 'Line-seperated ous requests that should be denied. All other requests not matching the list will be allowed. Supports * as a wildcard.', 'rest-api-guard' ), 155 159 'filter' => 'rest_api_guard_anonymous_requests_denylist', 156 160 'id' => 'anonymous_requests_denylist', … … 176 180 'allow_namespace_access' => ! empty( $input['allow_namespace_access'] ), 177 181 'allow_user_access' => ! empty( $input['allow_user_access'] ), 178 'anonymous_requests_allowlist' => ! empty( $input['anonymous_requests_allowlist'] ) ? sanitize_text _field( $input['anonymous_requests_allowlist'] ) : '',179 'anonymous_requests_denylist' => ! empty( $input['anonymous_requests_denylist'] ) ? sanitize_text _field( $input['anonymous_requests_denylist'] ) : '',182 'anonymous_requests_allowlist' => ! empty( $input['anonymous_requests_allowlist'] ) ? sanitize_text_field( $input['anonymous_requests_allowlist'] ) : '', 183 'anonymous_requests_denylist' => ! empty( $input['anonymous_requests_denylist'] ) ? sanitize_text_field( $input['anonymous_requests_denylist'] ) : '', 180 184 ]; 181 185 } -
rest-api-guard/trunk/README.md
r2801542 r2805089 1 1 # REST API Guard 2 2 3 Stable tag: 1.0. 03 Stable tag: 1.0. 4 4 5 5 Requires at least: 6.0 … … 13 13 Tags: alleyinteractive, rest-api-guard 14 14 15 Contributors: s rtfisher15 Contributors: s 16 16 17 17 [![Coding Standards](https://github.com/alleyinteractive/wp-rest-api-guard/actions/workflows/coding-standards.yml/badge.svg)](https://github.com/alleyinteractive/wp-rest-api-guard/actions/workflows/coding-standards.yml) … … 33 33 information with the internet anonymously. This plugin aims to make it easier to 34 34 restrict access to the REST API for your WordPress site. 35 36 37 38 39 35 40 36 41 ### Settings Page -
rest-api-guard/trunk/plugin.php
r2801542 r2805089 4 4 * Plugin URI: https://github.com/alleyinteractive/wp-rest-api-guard 5 5 * Description: Restrict and control access to the REST API 6 * Version: 1.0. 06 * Version: 1.0. 7 7 * Author: Sean Fisher 8 8 * Author URI: https://alley.co/ -
rest-api-guard/trunk/readme.txt
r2801545 r2805089 1 1 === REST API Guard === 2 Stable tag: 1.0. 02 Stable tag: 1.0. 3 3 Requires at least: 6.0 4 4 Tested up to: 6.0 -
rest-api-guard/trunk/settings.php
r2801542 r2805089 7 7 8 8 namespace Alley\WP\REST_API_Guard; 9 10 11 12 9 13 10 14 add_action( 'admin_menu', __NAMESPACE__ . '\on_admin_menu' ); … … 133 137 add_settings_field( 134 138 'anonymous_requests_allowlist', 135 __( 'Anony ous Request Allowlist', 'rest-api-guard' ),136 __NAMESPACE__ . '\render_field', 137 SETTINGS_KEY, 138 SETTINGS_KEY, 139 [ 140 'description' => __( 'Line-seperated allowlist for anony ous requests that should be allowed. All other requests not matching the list will be denied. This setting takes priority over the denylist below. Supports * as a wildcard.', 'rest-api-guard' ),139 __( 'Anonyous Request Allowlist', 'rest-api-guard' ), 140 __NAMESPACE__ . '\render_field', 141 SETTINGS_KEY, 142 SETTINGS_KEY, 143 [ 144 'description' => __( 'Line-seperated allowlist for anonyous requests that should be allowed. All other requests not matching the list will be denied. This setting takes priority over the denylist below. Supports * as a wildcard.', 'rest-api-guard' ), 141 145 'filter' => 'rest_api_guard_anonymous_requests_allowlist', 142 146 'id' => 'anonymous_requests_allowlist', … … 147 151 add_settings_field( 148 152 'anonymous_requests_denylist', 149 __( 'Anony ous Request Allowlist', 'rest-api-guard' ),150 __NAMESPACE__ . '\render_field', 151 SETTINGS_KEY, 152 SETTINGS_KEY, 153 [ 154 'description' => __( 'Line-seperated allowlist for anonyous requests that should be denied. All other requests not matching the list will be allowed. Supports * as a wildcard.', 'rest-api-guard' ),153 __( 'Anonylist', 'rest-api-guard' ), 154 __NAMESPACE__ . '\render_field', 155 SETTINGS_KEY, 156 SETTINGS_KEY, 157 [ 158 'description' => __( 'Line-seperated ous requests that should be denied. All other requests not matching the list will be allowed. Supports * as a wildcard.', 'rest-api-guard' ), 155 159 'filter' => 'rest_api_guard_anonymous_requests_denylist', 156 160 'id' => 'anonymous_requests_denylist', … … 176 180 'allow_namespace_access' => ! empty( $input['allow_namespace_access'] ), 177 181 'allow_user_access' => ! empty( $input['allow_user_access'] ), 178 'anonymous_requests_allowlist' => ! empty( $input['anonymous_requests_allowlist'] ) ? sanitize_text _field( $input['anonymous_requests_allowlist'] ) : '',179 'anonymous_requests_denylist' => ! empty( $input['anonymous_requests_denylist'] ) ? sanitize_text _field( $input['anonymous_requests_denylist'] ) : '',182 'anonymous_requests_allowlist' => ! empty( $input['anonymous_requests_allowlist'] ) ? sanitize_text_field( $input['anonymous_requests_allowlist'] ) : '', 183 'anonymous_requests_denylist' => ! empty( $input['anonymous_requests_denylist'] ) ? sanitize_text_field( $input['anonymous_requests_denylist'] ) : '', 180 184 ]; 181 185 }
Note: See TracChangeset
for help on using the changeset viewer.