One of my websites scan by a security firm and came up with below to block ".json" access over the internet. I've tried few plugins but none of them work, does anyone know how to block similar files display JSON on the browser.
One of my websites scan by a security firm and came up with below to block "http://domain/wp-includes/sodium_compat/composer.json" access over the internet. I've tried few plugins but none of them work, does anyone know how to block similar files display JSON on the browser.
Share Improve this question edited Feb 2, 2020 at 12:30 Jacob Peattie 44.2k10 gold badges50 silver badges64 bronze badges asked Feb 2, 2020 at 12:23 Roshan DeshapriyaRoshan Deshapriya 1721 gold badge2 silver badges10 bronze badges2 Answers
Reset to default 0You have two way to proceed:
1) Use the .htaccess
file to exclude the folder from begin listed
2) Exclude the json
files from crawlers scan by adding them inside the robots.txt
file.
I've change file permission, so It'll read-only by a system not to display to the public. I had assistance from my hosting provider.