Forum Discussion
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
3 Replies
- ltwagnonRet. Employee
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"
- al_kabeer_2905
Nimbostratus
thanks,
I only need to block GET method from first request (since first request is always POST) and allow it on all other requests.
- al_kabeer_2905
Nimbostratus
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}"
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com