diff --git a/templates/etherpadlite.vhost.erb b/templates/etherpadlite.vhost.erb index 5cd0147..a2d3e01 100644 --- a/templates/etherpadlite.vhost.erb +++ b/templates/etherpadlite.vhost.erb @@ -78,6 +78,9 @@ # etherpad-lite installation. RewriteRule ^/robots.txt$ <%= scope.lookupvar("etherpad_lite::apache::docroot") %>/robots.txt [L] + # Refuse external connections to the API through the proxy + RewriteRule ^/api/ - [F,L] + RewriteCond %{REQUEST_URI} !^/p/ RewriteCond %{REQUEST_URI} !^/locales/ RewriteCond %{REQUEST_URI} !^/locales.json