Restricting short search queries | Community
Skip to main content
New Participant
October 3, 2017
Solved

Restricting short search queries

  • October 3, 2017
  • 1 reply
  • 537 views

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.
Best answer by joerghoh

I would implement this as a request filter.

Jörg

1 reply

joerghoh
joerghohAccepted solution
Employee
October 3, 2017

I would implement this as a request filter.

Jörg