iwestlin / gdshare

496 stars 264 forks source link

请问能否隐藏原始的云端连结? #17

Open raylagon opened 4 years ago

raylagon commented 4 years ago

点选目录、文件都能连回google drive 是否安全呢? 谢谢大佬分享

iwestlin commented 4 years ago

这个设计是为了方便自己回到官网进行操作。 如果你的文件夹没有分享过,那么只有登录了你的帐号才能访问啊。 你可以打开隐身窗口或者换个帐号打开试试,都需要权限的。

masbodo commented 4 years ago

maybe must encrypt the shared drive ID, folder ID from URL :

example URL :

http://mydomain.com/ls/0AEnaxxHaJaDUk9PVA http://mydomain.com/ls/17jlGNIi9bksjKJEkjs7qmA6Cmc

and deleted the table of "Types"

{ title: "Type", dataIndex: "mimeType", render: function (e, t) { var n = "application/vnd.google-apps.folder" === e, r = n ? "https://drive.google.com/drive/folders/" + t.id : "https://drive.google.com/file/d/" + t.id; return N.a.createElement("a", { href: r, target: "_blank" }, n ? "Directory" : "File") } }