.htaccess - htaccess rewrite url contains -
i'm trying block urls in site, example want "ban" urls , give them 403 when contains words options, k2 or component. problem htaccess not work properly
<ifmodule mod_rewrite.c> rewriteengine on rewritecond %{request_method} ^(option|k2|component) [nc] rewriterule .* - [f] </ifmodule>
is blocking when bot attack www.example.com/option=?asdasdad not blocking when bot attacking www.example.com/index.php/option=?asdad
anyone?
remove above , put following code :
rewriteengine on rewriterule (option|k2|component) - [f]
Comments
Post a Comment