In my project-name\public\user-note folder there are .txt files that I don't want others to access and I added a .htaccess file with the content:
<filesmatch "\.(ini|psd|log|sh|txt)$">
order allow,deny
deny from all
</filesmatch>
And one more thing is that when I access http://<ip>:8000/.htaccess
, it shows all the contents of the .htaccess file in the project-name\public folder