最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

security - Block JSON access over the net

programmeradmin1浏览0评论

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 badges
Add a comment  | 

2 Answers 2

Reset to default 0

You 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.

发布评论

评论列表(0)

  1. 暂无评论