I need help, I use netlify hosting for the sites but I would like to deny access to images from others, there is no .htaccess file on netlify so I can’t do it because it is static hosting. Is there a way to block access to my website files with netlify? if so how? thank you.
I would like to prevent access to folders
Hi @BlacksARkwop ,
Thank for reaching and welcome to the forums!
I have one of two options that might help you as I’m not totally sure if this is what you’re asking.
We have a support guide that covers access control over your Netlify sites. [Support Guide] Access control options for your Netlify sites
You can also use a password protection which allows you to lock all or select parts of your site with a password. Password protection | Netlify Docs
I hope this helps.
Hi, I solved it, I created the _redirects file and set that when someone wants to access the folder, it is redirected to an HTTP 404
Hi @BlacksARkwop ,
Thank for coming back and letting us know what worked for you. This will help others in the future. Happy building.