securing my server i found that using:
find . -type f -exec chmod 400 {} \;
find . -type d -exec chmod 500 {} \;
display 403 forbidden access.
if I use:
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
the server displays but i can have access from the internet to some folders directories.
my current folder owners are root - www-data for var/www/domain/public.
i would like to perform 400-500 permissions with my website displaying results on the internet with current www-data user, or another option could be to block directory display of folders. any help appreciated.