Courseiva
Web Application IncidentsmediumMultiple ChoiceObjective-mapped

212-89 Web Application Incidents Practice Question

An attacker is using a specific User-Agent to scan your web application. How do you block them effectively?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Create a WAF rule to block requests with the specific User-Agent string

Creating a WAF rule to drop requests matching that specific User-Agent string is the most direct and efficient mitigation.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Create a WAF rule to block requests with the specific User-Agent string

    Why this is correct

    Most WAFs allow filtering based on HTTP request headers like User-Agent.

  • Disable all directory indexing on the server

    Why it's wrong here

    This is a hardening measure, but it does not stop the scanning behavior.

  • Change the web server listening port

    Why it's wrong here

    Port changes are security through obscurity and do not stop the attack.

  • Update the server's hosts file

    Why it's wrong here

    The hosts file maps domains to IPs, not User-Agents.

About these practice questions

One of 206 original 212-89 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official EC-Council exam blueprint

This 212-89 practice question is part of Courseiva's free EC-Council certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 212-89 exam.