API - can it be disabled

In Omeka Classic you had to enable the API, in Omeka S it seems to be default enabled.

Is it possible to turn it off or make it private?

There is no option for that, but you can add a rule in the file “.htaccess” at the root of Omeka.

What would that rule look like?

Thanks!

Something like

RewriteRule ^/api/.* [R=403,NC,L]

But it may depend on your server.

1 Like

This topic was automatically closed 250 days after the last reply. New replies are no longer allowed.