I am trying to write rewrite rules to block URLs with some particular pattern. The requests are as follows as seen in Apache log.
"GET /mysecure/Docs?cb=20414624755 HTTP/1.1" 200 881107 "-" "Mozilla/5.0 (Windows NT 6.1; rv:53.0) Gecko/20100101 Firefox/53.0"
I want to block all requests with QUERY_STRING cb=20414624755
.
For this I have written the following rule
RewriteCond %{QUERY_STRING} "^cb=20414624755$" [nocase]
RewriteRule ^\/mysecure\/Docs$ - [forbidden,last]
But the requests are not getting blocked.In apache access log file , I can see 200 Response code
for the requests with these patterns.
Please suggest.