Bug 67030 - feature request: drop connection without response
Summary: feature request: drop connection without response
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_rewrite (show other bugs)
Version: 2.4.37
Hardware: Other Linux
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-21 21:56 UTC by specialmonkey
Modified: 2023-08-22 16:05 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description specialmonkey 2023-08-21 21:56:41 UTC
feature request: drop connection without response

I'm thinking of something like Nginx's 444. It would be great to be able to close certain connections without a response with a mod_rewrite flag and/or via any of the other components/directives where it makes sense. 

My HTTPD is behind a load balancer and I only see the client IP as a header. Sometimes I want to block malicious client IPs at HTTPD. I do not control the load balancer.

The best thing I've found so far is giving 403s with [F,L] via a rewrite expression and ipmatch.

I'm guessing this would already be a feature if it wasn't very difficult to implement? 

I'm interested to learn more about why this could or couldn't be done.

Thanks!