This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Block GET Requests but allow POST
Author
Message |
reach4thelasers
Newbie


Joined: 30 July 2011
Posts: 4
Posted: 29 January 2012 at 1:54am

Can anyone tell me how to use ISAPI Rewrite to block GET
requests to a particular path but allow POST/HEAD etc?
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 30 January 2012 at 5:23am

We used the following condition to avoid redirects for POSTs:

Code:
RewriteCond %{REQUEST_METHOD} !^POST


So in your case it'd be:

Code:
RewriteCond %{REQUEST_METHOD} !^GET
RewriteRule .? - [F]



Regards
Andrew
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version