{"repo":"nicnocquee/next-secure-download","free":true,"listed":false,"github":"https://github.com/nicnocquee/next-secure-download","clone":"git clone https://github.com/nicnocquee/next-secure-download.git","description":"A Next.js project to serve a password-protected download link.","language":"TypeScript","stars":32,"topics":["nextjs","nodejs","react","reactjs","secure"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"About This repo contains the basic Next.js project that will allow you to create a public password-protected file download link. The file will be protected using basic authentication. Motivation I needed a solution to make a file publicly downloadable, but - ✅ it should be FREE . - ✅ the files are password-protected. - ✅ the files can be directly downloaded, no download page. - ✅ the files can be downloaded from script or command line. I couldn't find anything that meets those requirements. So I made this repo by storing the files in private GitHub repository and serving them through free hosting like Vercel or Netlify, both of which are FREE. Demo 1. Check out this demo website which was deployed to Netlify. 2. Click the \"Download secret file\" link. 3. Use admin and supersecret as User and Password, respectively. You can also directly download the file from the browser by opening this link https://next-secure-download.netlify.app/api/download/secret.json. Enter admin and supersecret as User and Password, respectively. And since the file is protected using basic authentication, you can also download the file directly from command line using curl: Quick Start In this example, I'm using Netlify to deploy the project. You can use any other hosting service like Vercel, or even your own server. 1. Click the \"Deploy\" button above to deploy this project to your Netlify account. Please register with Netlify if you haven't. 2. Fill up ADMIN USERNAME and ADMIN PASSWORD environment vari","default_branch":null,"files":null,"tree":[],"storefront":"/r/nicnocquee","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nicnocquee/next-secure-download/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}