(http.request.uri.path eq "/api/v3/comment/list" and not http.request.uri.query contains "post_id")
For Caddy users:
nginx
# >>> Specific handler for /api/v3/comment/list with post_id check
handle_path /api/v3/comment/list {
# Check if the 'post_id' query parameter is present
@hasPostId {
query post_id=*
}
# Abort the connection if the parameter is missing
handle @hasPostId {
reverse_proxy http://localhost:8536/
}
# This handles all requests that did not match @hasPostId
abort
}
We already get more than enough drive by spam from everyone who just makes an account to complain that our code doesn’t do something we never said it did. And if they don’t even have to do that? Ugh.
That's easy to solve by allowing no one to open issues at all. JK.
US default, they talk as if there is only USA