5183 shaares
488 private links
488 private links
This is a neat and effective way to restrict paste uploading using NGINX without breaking anything and without modifying PrivateBin.
Approach
An authentication page is created using NGINX, which, if provided with the correct credentials, will set a cookie with a secret key. All POST requests to the server are restricted using NGINX and only allowed if this secret key is provided. This allows viewing pastes by anyone but not uploading. ///
pastebin stikked