1
I am developing a website where I have an administrative panel that is accessed only by those who have access. on the admin panel pages, I did the validation that checks if the user is logged in as admin to access the page. For example, if any other user tries to directly access the.com/administrative/user URL, it will be redirected to the home page. However, if I just type in the address bar: nomedosite.com/admin, it brings me a list of all the files I have in the folder. How to prohibit this, so that when accessing the folder that has the files the user is redirected, and not only when accessing the page?
Via htaccess you can’t do this?
– user28595
Good tip, hadn’t tried yet. I’ll try to use.
– Developer1903