07-21-2015 05:43 AM
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.
07-21-2015 07:40 AM
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.
07-21-2015 07:59 AM
Thank you for the reply, but that did not work either. I thought the host-header pattern only matched strings in the host header field. It does work when I add the sites hostname; but I am looking for form data.
I finally ended up finding it with trial and error: http-req-params
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!