Search Guides
Exact matches only
Search in title
Search in content
Search in posts
Search in pages
Filter by Categories
Blog
Business
Creative
Design
Ecommerce
Email Marketing
Facebook
Google
Google Analytics
Inspiration
Landing Page
Mailchimp
Portfolio
SEO
Social Media
Tips & Tricks
Tutorials
Twitter
Water Cooler
Webmaster Tools
Website
Wordpress
WordPress Tutorials
{ "homeurl": "http://simpleturtle.com/", "resultstype": "vertical", "resultsposition": "hover", "itemscount": 5, "imagewidth": 70, "imageheight": 70, "resultitemheight": "70px", "showauthor": 0, "showdate": 0, "showdescription": 0, "charcount": 3, "noresultstext": "No results!", "didyoumeantext": "Did you mean:", "defaultImage": "http://simpleturtle.com/wp-content/plugins/ajax-search-lite/img/default.jpg", "highlight": 0, "highlightwholewords": 0, "scrollToResults": 0, "resultareaclickable": 1, "defaultsearchtext": "", "autocomplete": { "enabled" : 1, "lang" : "en" }, "triggerontype": 1, "triggeronclick": 1, "redirectonclick": 0, "trigger_on_facet_change": 0, "settingsimagepos": "right", "hresultanimation": "fx-none", "vresultanimation": "fx-none", "hresulthidedesc": "1", "prescontainerheight": "400px", "pshowsubtitle": "0", "pshowdesc": "1", "closeOnDocClick": 1, "iifNoImage": "description", "iiRows": 2, "iitemsWidth": 200, "iitemsHeight": 200, "iishowOverlay": 1, "iiblurOverlay": 1, "iihideContent": 1, "iianimation": "1", "analytics": 0, "analyticsString": "ajax_search-{asl_term}", "redirectonclick": 0, "redirectClickTo": "results_page", "redirect_on_enter": 0, "redirectEnterTo": "results_page", "overridewpdefault": "0" }

Disable JSON REST API

Having API available on your website brings a lot of benefits to WordPress developers. However, some website owners, like yourself or others may not be able to use those features to its full potential. The API makes it extremely easy to retrieve data. This makes it useful for people building apps with WordPress.

 

The downside of having is potentially opens your website to a new front of DDoS attacks. It can also slow down your website, so if you do not use it, disable it.

 

Disabling JSON REST API in WordPress

 

If you want to disable JSON REST API on your WordPress site, then you can easily do so by simply adding the following code in your theme’s functions.php

 

add_filter('json_enabled', '__return_false');

add_filter('json_jsonp_enabled', '__return_false')[{/php]

 

This code simply uses the built-in filters to disable the JSON and JSONP APIs.

 

Do you not want to add the code? You can just install this plugin, the reason we offer the code to you is because adding another plugin just makes the site heavier, but if you are not confident in adding the code, install the plugin below – there is no settings for the plugin, just install and you are done.

 

JSON API disable

 

2 0

Signup and refer 3 friends and we will give you 60% off everything!