DEV Community

Carrie
Carrie

Posted on

How to Secure Static Resources with Open Source WAF, SafeLine

SafeLine is a self-hosted WAF(Web Application Firewall) to protect your web apps from attacks and exploits.

You can secure static resources by setting up a website with SafeLine. Here is the guideline for adding your static resources.

Version Requirement: >= 6.6.0

1. Select Static Files for Site Setup when adding a web service.

Image description

2. Successful Access: A default page will appear upon accessing the site, indicating a successful setup.

3. You can upload your own static files in the site details.

Image description

FAQ

What to do if the uploaded file exceeds the size limit?

You can manually upload files to the corresponding site directory on the WAF server. The path is:

installation_directory/resources/nginx/static/static_${SITE_ID}
Enter fullscreen mode Exit fullscreen mode

The SITE_ID can be found in the URL of the site details. For example, the site ID for the URL https://xxxx:9443/sites/detail?id=12 is 12.

Top comments (0)