Skip to content

Instantly share code, notes, and snippets.

@vpnwall-services
Created November 10, 2020 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vpnwall-services/139ae23dd60d41803a5755a8ddf0f4c1 to your computer and use it in GitHub Desktop.
Save vpnwall-services/139ae23dd60d41803a5755a8ddf0f4c1 to your computer and use it in GitHub Desktop.
[Wordpress API Whitelist] Wordpress API Whitelist #bash #apache2 #htaccess #wordpress #api #whitelist #restriction
RewriteEngine On
RewriteCond %{REMOTE_ADDR} !=xxx.xxx.xxx.xxx
RewriteCond %{REQUEST_URI} /wp-json/ [NC]
RewriteRule . - [F,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment