How to Block Automated Vulnerability Scanners on a Public Site with SafeLine
Automated vulnerability scanners turn a public website into a continuously tested target. Attackers enumerate paths, probe parameters, and send exploit payloads to discover a weakness that could provide initial access.
AI-assisted automation can help attackers vary requests, but defenders should base blocking decisions on observable behavior rather than claims about how a scanner was built. The practical goal is to stop malicious requests before they reach the application while keeping legitimate visitors, monitoring services, and API clients working.
This guide explains how to block automated vulnerability scanners on a public site using a staged SafeLine deployment and evidence-based checks.
1. Establish what the scanner is doing
Review your existing access logs before changing traffic handling. Look for rapid requests across unrelated application paths, repeated probes for administrative interfaces, traversal strings, and injection attempts in query parameters.
A single unfamiliar user agent is weak evidence: attackers can change it, and legitimate tools sometimes use generic identifiers. Record the requested path, timestamp, response status, source address, and request frequency. Compare these with application errors and authentication events.
Decide whether the immediate concern is exploit delivery, excessive request volume, or suspicious browsing. These problems need different controls.
If requests appear to have succeeded, preserve relevant logs and investigate the application. Blocking subsequent probes does not establish whether an attacker already gained access.
2. Prepare a compatible SafeLine host
SafeLine is a self-hosted WAF that filters and monitors HTTP traffic in front of a web application. Its documented capabilities include web attack defenses, IP-based rate limiting, access controls, and CAPTCHA challenges. See the official overview.
For a straightforward installation, prepare a Linux x86_64 host and check the documented prerequisites:
- Docker 20.10.14 or later
- Docker Compose 2.0.0 or later
- at least one CPU core
- 1 GB of memory
- 5 GB of disk space
- and the listed SSSE3 CPU requirement
These are minimum requirements, not a capacity estimate for your traffic. The installation guide provides the requirements and verification commands.
Before deployment, record your current DNS configuration, origin address, and a rollback procedure. Choose a change window in which someone can test the public site immediately.
3. Install SafeLine and access the console
Follow the automatic deployment procedure in the official installation guide. The documented installer requires root privileges; review the procedure before running it on your host.
After installation, open https://<safeline-ip>:9443/.
Retrieve the administrator credentials with the documented command:
docker exec safeline-mgt resetadmin
Sign in using the returned credentials. Limit administrative access to trusted operators and networks as part of your deployment plan. Keep credentials out of tickets, screenshots, and shared command transcripts.
4. Add the application and route public traffic
In the SafeLine console, open Applications and select Add Application. Enter the application's domain, the port SafeLine will listen on, and the upstream address of the original application. For HTTPS applications, select the SSL option. Then resolve the public domain to the SafeLine server's IP address. These steps follow the application configuration guide.
SafeLine operates as an HTTP/HTTPS reverse proxy: it receives requests and forwards accepted traffic to the upstream application, according to that guide.
Check that the upstream address reaches the origin rather than resolving back to the public WAF endpoint. Separately, review origin network access so attackers cannot bypass the intended inspection path by connecting directly. Verify trusted integrations before restricting origin access.
5. Validate exploit blocking before tightening bot controls
Test normal browsing, sign-in, search, form submission, and any important API workflows. Check both the user-visible result and whether the application receives the expected requests.
Next, perform a controlled attack test against an application you own and are authorized to test. The official application guide supplies example injection and traversal requests. It explains that a blocking page indicates the test was blocked, and that you can inspect the attack list and open detail in the console.
Correlate the test timestamp with the recorded event and origin logs. If a legitimate request is blocked, inspect its details before changing policy. Avoid broad exceptions based only on a complaint or a familiar source address.
6. Choose rate limits and challenges from observed behavior
SafeLine documents IP-based rate limiting for excessive traffic and CAPTCHA challenges for bot protection in its feature overview. The supplied documentation does not specify configuration fields or thresholds, so do not assume an undocumented setup command or scanner-specific preset exists.
Use your baseline to decide what requires additional control. Repeated exploit payloads call for attack inspection. High request volume may justify rate limiting. Suspicious interactive browsing may justify evaluating a challenge. Test the impact before broad enforcement.
Shared corporate networks can place many visitors behind one IP address. Machine clients and monitoring services may be unable to complete a browser challenge. Distributed scanners can also remain below individual IP limits, so request volume alone is insufficient evidence of safety.
7. Review results and close application weaknesses
After routing traffic through SafeLine, compare blocked events, application errors, response times, and critical user journeys. Check whether suspicious requests still reach the origin and whether legitimate clients encounter new failures.
Treat exploit attempts as a prompt to inspect exposed software versions, unnecessary endpoints, and patch status. A WAF can interrupt malicious HTTP requests; it does not replace patching, credential rotation, or investigation when there is evidence of compromise.
Frequently asked questions
Can I block scanners by user agent alone?
User agents are easy to change. Use them as supporting context alongside payloads, request sequences, frequency, and application behavior.
Should every public visitor receive a CAPTCHA?
Base that decision on your site's clients and workflows. Test accessibility, legitimate automated access, and API behavior before applying challenges broadly.
Does a blocked probe mean the website is secure?
It establishes that the tested request was blocked through that route. It does not prove that every exploit, alternate endpoint, or direct-origin connection is covered.
What should I investigate if scans continue?
Determine whether the traffic is blocked at the WAF, reaching the origin through another route, or passing inspection without an exploit payload. Continued probing and successful exploitation require different responses.
SafeLine has surpassed 700,000 installations worldwide as of September 30, 2026. SafeLine Pro annual promotional pricing is $650-$880, compared with the regular $1,000 per year.
- SafeLine website: https://ly.cyberserval.tech/bvK1BAV
- Demo: https://demo.waf.chaitin.com:9443/statistics
- Official docs: https://docs.waf.chaitin.com/en/home
- GitHub: https://github.com/chaitin/SafeLine
- Pro offer: https://cyberserval.tech/landing/lto
Comments
No comments yet. Start the discussion.