Disable WP REST API
Does one thing: Completely disables the WordPress REST API for visitors who are not logged into WordPress. No configuration required. Important: This plugin completely disables the WP REST API for visitors who are NOT logged in to WordPress. So not recommended if your site needs the WP REST API for any non-logged users. 👉 The fast, simple way to prevent abuse of your site’s REST/JSON API 👉 Protects your site’s REST data from all non-logged users and bots 👉 Uses only 4KB of code, so super lightweight, fast, and effective 🛠️ Pro version available! Check out REST Pro Tools » Features Disable REST/JSON for visitors (not logged in) Disables REST header in HTTP response for all users Disables REST links in HTML head for all users 100% plug-and-play, set-it-and-forget solution How does it work? This plugin completely disables the WP REST API unless the user is logged into WordPress. For logged-in (authenticated) users, WP REST API works normally For logged-out (unauthenticated) users, WP REST API is disabled What happens if logged-out visitor makes a JSON/REST request? They will get only a simple message: rest_login_required: REST API restricted to authenticated users. This message may customized via the filter hook, disable_wp_rest_api_error. Check out this post for an example of how to do it. Pro Version 🛠️ Check out the Pro version, REST Pro Tools, loaded with many awesome features: One-click disable all routes One-click disable all /users routes Disable any specific user routes based on role Whitelist any user IDs Whitelist any IP addresses Customize the REST error message Customize the REST response code Always require or force SSL/TLS Disable all JSONP shenanigans One-click disable any REST API headers Add any post meta (custom field) to REST API Add any user meta (custom field) to REST API Add routes for site profile and author profile Add routes for featured images and post categories Add routes for post taxonomies and terms At-a-glance check status of REST API The free version does only one thing: disables REST API for unauthenticated users. The PRO version can do that and much more! Take full control of the REST API with REST Pro Tools » Privacy This plugin does not collect or store any user data. It does not set any cookies, and it does not connect to any third-party locations. Thus, this plugin does not affect user privacy in any way. If anything it improves user privacy, as it protects potentially sensitive information from being displayed/accessed via REST API. Disable WP REST API is developed and maintained by Jeff Starr, 15-year WordPress developer and book author. Support development of this plugin I develop and maintain this free plugin with love for the WordPress community. To show support, you can make a donation or purchase one of my books: The Tao of WordPress Digging into WordPress .htaccess made easy WordPress Themes In Depth Wizard’s SQL Recipes for WordPress And/or purchase one of my premium WordPress plugins: BBQ Pro – Blazing fast WordPress firewall Blackhole Pro – Automatically block bad bots Banhammer Pro – Monitor traffic and ban the bad guys GA Google Analytics Pro – Connect WordPress to Google Analytics Head Meta Pro – Ultimate Meta Tags for WordPress REST Pro Tools – Awesome tools for managing the WP REST API Simple Ajax Chat Pro – Unlimited chat rooms USP Pro – Unlimited front-end forms Links, tweets and likes also appreciated. Thank you! 🙂
Top keywords
- rest30×5.28%
- api18×3.17%
- rest api17×2.99%
- pro15×2.64%
- wordpress14×2.46%
- users9×1.58%
- disable8×1.41%
- wp8×1.41%
- wp rest8×1.41%
- wp rest api8×1.41%
- user7×1.23%
- disables6×1.06%
Get Use APIs – JSON Content Importer
The simplest method to link WordPress with external APIs JCI simplifies the task of retrieving data from a third-party REST API. The returned JSON-, XML, CSV, TXT-data can be neatly arranged and showcased on your WordPress site via a shortcode, a JCI Block or PHP. The plugin can generate a template for the data display. 20 seconds: Load API and display data 7 minutes: Basic intro to JCI free Examples, Preview Check out the live demonstration to explore how we’re interfacing with various APIs LIVE PREVIEW – WordPress and a external API Video: How to use the Wikipedia API Main Plugin Features Low code usage: Save time and avoid coding using an API Insert an API-URL into Step 1: Data is loaded, and and displayed. Save it as API-Access-Set. Use the API-Access-Set in Step 2 to create a Shortcode Optional for maximum flexibility: Use the API-Access-Set n PHP code Insert an API-URL into the JCI Block: Data is loaded, and a template can be generated to display the data. Easy to start: Check Installation – Is your WordPress ready for JCI? Most probably! Basic Settings: Check SSL, Cacher, Gutenberg and Authentication ContactForm7 Integration: Populate CF7 forms with JSON data and forward CF7-submitted data to an API. Use the JCI cacher to avoid many API requests JCI-Block : Use the simple JCI Block interface to get data! Query the API and check the response. Then utilize the simple template generator inside the JCI Block to use the data! Contact Form 7 Integration: Fill form and submit to API Important Note Starting with Version 2.0.11 Starting with version 2.0.11, any HTML code present in the shortcode or block is filtered to prevent dangerous code (e.g. JavaScript) from being output. However, if you want to allow certain tags or attributes as a deliberate choice: In the plugin’s “Basic Settings” there is a field called “Allow additional HTML tags (advanced)”. There you can enter comma-separated tags that should not be filtered out. For example, “iframe,script” would preserve these two tags in the HTML output. “tr#onclick” would preserve the “onclick” attribute in ”, which would otherwise be removed. Documentation There’s a wealth of resources and support at your fingertips. Explore the articles listed below to begin your journey: JCI Manual Step 1: Access the Data Step 2: Using the Data Shortcode – Basic structure Contact Form 7 Integration Free JCI Plugin: Overview Videos Free JCI Plugin: Getting Started You need more? JSON Content Importer PRO Both the free and PRO JCI Plugins serve the same purpose: retrieving data, transforming it, and publishing the results. However, while the free Plugin can only handle basic challenges, the PRO JCI Plugin offers nearly full control over WordPress, the database, and applications. Compare: Free vs. JCI PRO Plugin PRO features: * application building by creating a searchform and connect it to a JSON-API in the background: pass GET-Variables to use a dynamic JSON-Feed-URL (“talk to API / webservice”) * much better and more flexible templateengine: twig * create and use Custom Post Types * store Templates independent of pages * more Shortcode-Parameters * executing Shortcodes inside a template * more features…