Block request start from "?" symbol

#1
OpenLiteSpeed 1.6.21

I tried to block DDoS requests like "/?12345" starting with ? symbol but cannot do this.
How I can block such requests? Context exp:^/\? or exp:^/? did not block it.

How I can do this?
 

Unique_Eric

Administrator
Staff member
#2
Hi,
How about adding the following rules to the .htaccess and restart the webserver, it will block all request with QS
Code:
RewriteCond %{QUERY_STRING} !^$
RewriteRule .* - [F]
By the way, this forum is for LSWS, if you have more OpenLiteSpeed questions please go to https://forum.openlitespeed.org/.
 
Top