How to close access to files


#1

Hi,
I have an Omeka Classic with PDFs and metadata. At this point I need to close the access to PDFs and make public only the metadata. Is it possible?


#2

Someone please answer :slight_smile:


#3

Omeka isn’t really designed to have the files private. You can see some discussion from an earlier thread about an option involving modifying a plugin.

If you want to remove access completely you can do it with Apache (like, using an .htaccess file in files/original with a Deny from All or Require all denied).


#4

Are you interested in hiding the files only from general public, or also to registered users of the repository?
In the first case, I guess you could alter the code of all the public pages showing the files (like items/show, for instance), removing the part that actually gets the file displayed.


#5

Problem solved! Thanks everyone.


#6

Can you explain how did you solved it?