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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b9e9d1-2f432.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b9e9d1-2f432.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?