Close connection on rule match
3 posts
• Page 1 of 1
- blindvillian
- Posts: 1
- Joined: 05 Sep 2012, 17:04
Close connection on rule match
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
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
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Close connection on rule match
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
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
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 42 guests