Which of these measures do you think will also prevent path traversal attacks?

Keeping the server OS up-to-dateNot relying on user input for filenamesSanitizing paths for illegal character patterns

Yes! All of these can help keep our paws out of private directories.

Oh no! All of these can help keep our paws out of private directories.