Protect a folder with password

Hello,
in the public folder i upload a new folder to run some php scripts that i need for other propouses.
I would to protect this folder with a passowrd from cpanel but when i try browse on it, i can’t see my script.
It’s like i cant reach the folder path.
I think this issue is couse by the framework path configuration.
Do you thin can I exlude this public subfolder from the framwork rules?
Thank you.

Why put scripts in the public folder?

The custom folder would be more appropriate. And your web server won’t execute PHP from that folder directly (under normal configurations), only if it’s a valid entrypoint.

Or you could even place outside the webroot, if it’s not meant to be served at all, or if it’s more sensitive.

I try to use that path but i can’t reach the script.
I found a white page.

Please include more detailed info, such as the exact path of the script and the URL you tried.

Is your script a registered entry point? You can read about entry points in the docs.