Couchdb-面向读者用户的蒲团块 [英] Couchdb - Block futon for readers users

查看:86
本文介绍了Couchdb-面向读者用户的蒲团块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道读者如何在沙发上阻止对futon(_utils)的访问,只允许管理员访问。
我需要这样做,为什么如果读者用户访问被褥,他就能看到我所有数据库的名称以及有多少个文档。我的应用程序应该让读者只有在具有文档ID的情况下才可以访问文档。

I want to know how block the acess to futon (_utils) in couchdb for readers, allowing the access only for admins. I need to do this why if a reader user acess the futon he can see the name of all my databases and how many documents there are. My application should let a reader acess an document only if he have the id of them.

推荐答案

即使您阻止了蒲团,人们就能使用ouchdb API查找数据库列表。我认为正确的解决方案是将Web服务器放置在benchdb前面,并仅公开您需要的内容。

Even if you block futon, people will be able to find the list of databases using the couchdb API. I think the right solution is to put a webserver in front of couchdb and expose only what you need.

这篇关于Couchdb-面向读者用户的蒲团块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆