Re: Dropping query string (?) requests in httpd.conf

dan <[email protected]>
Newsgroups gmane.os.openbsd.misc
Message-ID <[email protected]>
Usually a redirect is the trick. You can try eventually o more dirty one by rewriting the query_string along the way.

Unfortunately I can't help you for the sintax because I'm full time on nginx.

dan
you can surf bsd.numode.eu
or write me on [email protected]

From: Paul Pace <[email protected]>
To: [email protected]
Date: May 31, 2026 19:05:06
Subject: Dropping query string (?) requests in httpd.conf

> Hello!
> 
> I am trying to drop query string requests in httpd.conf.
> 
> I have tried variations of location and location match (I'm pretty rough at getting Lua patterns configured) and nothing seems to work.
> 
> This does not work:
> 
> location "*\?" { block drop }
> 
> Any tips much appreciated.
> 
> Thank you,
> 
> 
> Paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.