How to secure my LabCollector on a selfhosted server? - LabCollector

Search Knowledge Base by Keyword

How to secure my LabCollector on a selfhosted server?

You are here:
← All Topics

To secure the access to your data using direct links when you are on your own server, you can create a .htaccess file with the following data:

Options -Indexes

RewriteEngine On

RewriteCond %{HTTP_REFERER} !^ 
http://(www\.)?URL/ [NC]
RewriteRule ^files\/(.+)$ - [F]
RewriteRule ^documents\/(.+)$ - [F]
RewriteRule ^backup\/(.+)$ - [F]
RewriteRule ^maps\/(.+)$ - [F]

Change the URL word by your own URL. From version LabCollector v6.0, you will find a .htaccess-example file that you can customize.