I am trying to write a custom application that will prevent specific data in an HTTP Post. In the attached trace, I would like to block the phrase 'THISISATEST' in the POST but allow any other phrase. (In reality I would also key in on several other headers to make it site specific, but I am not having problems with that part)
I have tried many option to include 'http-req-message-body' using both string text and HEX.
Any help would be appreciated.
I believe what you are looking for in the pattern-match operator is context=http-req-host-header pattern=THISISATEST qualifier=http-method: POST.
Give that a try. I'm doing a custom application for one of our company's statistics applications via the GET method. Anytime it does a get on a very specific pattern to know if it is a customer GET or an employee GET.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!