Forum Moderators: phranque
This is working fine, but if I want to extend the trick to requests longer than 255 chars (i.e. /.{256,}) I get the following error:
# apachectl configtest
Syntax error on line 28 of /usr/local/apache/conf/vhosts/testsite.conf:
RewriteCond: cannot compile regular expression '/.{256,}'
- Can I overcome the problem?
- Anyone could suggest another way to forbid long requests?
Any help would be greaty appreciated, thank you.
Welcome to WebmasterWorld!
There are several basic settings in Apache to limit the size of requests -- See the Apache core [httpd.apache.org] documentation, and see LimitRequestLine for one example.
Jim