I’m currently hosting my site on Cloudflare, and I’ve been trying to create a password protected directory. The popular methods I have seen are .htaccess which seems to be for apache servers which from my understanding Cloudflare does not run on. Cloudflare Access is also something I’ve seen, though definitely much more complicated than what I’m trying to do. I’ve also looked at a few different guides on this topic but none has really worked for me, I’m probably messing up somewhere silly. Perhaps it’s due to my dns records being managed by porkbun and not cloudflare?
I’m not super sure what kind of code I can offer, but my _middleware.js is directly copy and pasted from the htdocs guide as a test. I believe no password prompt really pops up when the site is accessed. (Then I have to figure out how to make it work with just a folder TvT)
Thank you ^^’