I'm looking at creating a Magento based solution to detect bots, specifically on search forms.
I have a bot searching a very specific long tail string and it shows on the dashboard of admin as being searched around 4000 times.
Can I observe the search to limit or strip characters out of the search string before Magento processes it, or at least truncate the length of the query? I tried searching the query myself and it just crashes my session. No other users seem to be affected by it, but I'm sure there is a performance hit elsewhere on the system.
For now I've created a honeypot that renders on the template, then I detect it in index.php and simply kill the script. Trying to find a more bullet-proof solution. Any help is greatly appreciated.