Stop http get message

Hi,

I have mobile application hosted on f5 ltm, the first message is always post.

I want to block any get request to application

thanks

you could use an iRule that checks the HTTP method https://devcentral.f5.com/wiki/iRules.HTTP__method.ashx and then block any method that equals “GET”

thanks,

I only need to block GET method from first request (since first request is always POST) and allow it on all other requests.

Hi, I have applied the below rule it did not work

when HTTP_REQUEST { if {“HTTP Method: GET” } {drop} }

the log shows TCL error: /Common/ALLOW_POST - expected boolean value but got “HTTP Method: GET” while executing “if {“HTTP Method: GET” } {drop}”