Make file read-only when visited