First of all, make sure you have successfully installed SafeLine, if not please refer to document Install SafeLine .
SafeLine is a web application firewall developed based on nginx, designed to help web applications defend against network attacks.
Its principle is to act as an http/https reverse proxy, receive network traffic for the original website, then clean the malicious attack traffic and forward the safe and reliable traffic to the original application.
www.chaitin.com
.https
Apps, please check the SSL
option).After completing the above settings, please resolve the domain name you just entered to the IP address of the server where SafeLine is located.
Then you can access the application protected by the SafeLine through the domain name like this.
Now, your App is protected by SafeLine, let’s try tp attack it and see what happens.
If https://chaitin.com is a website protected by SafeLine, here are some test cases for common attacks:
https://chaitin.com/?id=1+and+1=2+union+select+1
https://chaitin.com/?id=<img+src=x+onerror=alert()>
https://chaitin.com/?id=../../../../etc/passwd
https://chaitin.com/?id=phpinfo();system('id')
https://chaitin.com/?id=<?xml+version="1.0"?><!DOCTYPE+foo+SYSTEM+"">
Replace chaitin.com
in the above cases with your website domain name and try to access it.
If you see the following blocking page, it means SafeLine successfully helped you defense the attack.
Check the web console of SafeLine to see the attack list
To view the specific details of the attack, click "detail"