Wordfence Use
-
Wordfence Central utilizes the rest API and requires the following IPs to be opened up…I have the ability to easily update the plugin php code page…but how to do it?
The ips are:
54.68.32.247
44.235.211.232
54.71.203.174I think that it can be incorporated here somehow?
————————————————–
function v_forcelogin_rest_access( $result ) {
if ( null === $result && ! is_user_logged_in() ) {
return new WP_Error( ‘rest_unauthorized’, __( ‘Only authenticated users can access the REST API.’, ‘wp-force-login’ ), array( ‘status’ => rest_authorization_required_code() ) );
}
return $result;
}
add_filter( ‘rest_authentication_errors’, ‘v_forcelogin_rest_access’, 99 );
————————————————-But I am also willing to use a more global whitelisting code edits if needed.
Any help appreciated here, thanks audept
- The topic ‘Wordfence Use’ is closed to new replies.