Restricting short search queries | Community
Skip to main content
Level 2
Oct 3, 2017 9:04 AM UTC
Solved

Restricting short search queries

Good morning.

Is there any way to configure, either AEM or dispatcher out of the box, to restrict search queries, where the length of the search parameter is less than a specified value?

For example   search.html?q=1    would not search the repository, and possibly return a 403 error, whereas search.html?q=123  would search as normal and return a 200 response

Many thanks in advance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Oct 3, 2017 12:49 PM UTC

I would implement this as a request filter.

Jörg

1 reply

joerghoh
joerghohAccepted solution
Employee
Oct 3, 2017 12:49 PM UTC

I would implement this as a request filter.

Jörg

Translate