Close connection on rule match

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1
Joined: 05 Sep 2012, 17:04

Close connection on rule match

05 Sep 2012, 17:09

Hello,

We have a requirement to simply drop or close a request connection when a rule match is met. For example, if I receive a request for www.mydomain.com/somefile.abc or www.mydomain.com/someotherfile.xyz, I need to simply drop the connection and provide no response. I don't want to send a 404 or 403, I just want to ignore the request. Is this possible?

I'm currently using the following rule, but it sends a 403.

RewriteRule \.abc$|\.xyz$ / [F,NC,I,O,L]

Thanks for you help!
BV

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Close connection on rule match

05 Sep 2012, 20:01

Hello,

You may see all the flags here, there's nothing we can do about it with flags, there's also no such directive, which would just drop the request with no response.

Regards
Andrew

User avatar
Posts: 8
Joined: 23 Oct 2012, 23:06

Re: Close connection on rule match

25 Oct 2012, 22:47

Got it. This is what I've been waiting.

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 42 guests