Open file logic. Preventing to download projects in public directory.