How to disable access to file page (view display mode = full)? I want to disable access to the view display page of file by url like file/fid.

What's the good way for this? I have tried to use the hook_node_view() but it not called for the files.
I have finally used the RABBIT HOLE module, it contains a sub-module for managing file_entity! :)