Add protection against direct file access.