# Stop http get message

**URL:** <https://community.f5.com/t/stop-http-get-message/40421>\
**Category:** Technical Forums\
**Created:** [August 17, 2015, 2:57pm UTC](https://community.f5.com/t/stop-http-get-message/40421 "2015-08-17T14:57:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![al\_kabeer\_2905](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@al\_kabeer\_2905](https://community.f5.com/u/al_kabeer_2905)\
**Post date:** [August 17, 2015, 2:57pm UTC](https://community.f5.com/t/stop-http-get-message/40421/1 "2015-08-17T14:57:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ltwagnon](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/ltwagnon/32/19133_2.png) [@ltwagnon](https://community.f5.com/u/ltwagnon)\
**Post date:** [August 17, 2015, 7:13pm UTC](https://community.f5.com/t/stop-http-get-message/40421/2 "2015-08-17T19:13:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![al\_kabeer\_2905](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@al\_kabeer\_2905](https://community.f5.com/u/al_kabeer_2905)\
**Post date:** [August 18, 2015, 4:13am UTC](https://community.f5.com/t/stop-http-get-message/40421/3 "2015-08-18T04:13:31Z")

</div>

thanks,

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

---

<div class="post-metadata">

**Author:** ![al\_kabeer\_2905](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@al\_kabeer\_2905](https://community.f5.com/u/al_kabeer_2905)\
**Post date:** [August 19, 2015, 6:40am UTC](https://community.f5.com/t/stop-http-get-message/40421/4 "2015-08-19T06:40:23Z")

</div>

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}”
