retorillo/pubdir

Secret URL mode

Opened this issue · 0 comments

When normal mode, URL is constituted with actual relative path. This might be insecure because of browser's history or router log.

Publisher gives random ID or key to each exposing files when update(). On secret mode (pubdir --secret), all URLs will be replaced with this IDs.

publisher.pathToSecretID(path)
publisher.secretIDToPath(id)