Prevent access to lib folder.
Added temp folder protection things.