The tp3.2 setting forbids access to the Public directory

in the tp3.2 framework, I create a Public directory to store resource files at the same level in index.php. How can I prevent users from accessing my Public directory

Mar.10,2021

add .htaccess file

to the Public directory.
deny from all

thanks to the brothers upstairs. Your method works well locally, but it doesn't work on the server. Now it's solved. I just put an empty index.html file in the resource directory. They visit it as a blank page

.
Menu