I noticed that some spam bots probe the site with weird request like:
domain.com/.../dir/../file.php?hello=1..&val2=2...
also nonexisting subdomains aka
nigeria.domain.com
I need to sanitize this. The hardest part is to detect first dot(s) after domain name.
Nothing works for me.
RewriteCond %{REQUEST_URI} /\.+(.*)$
RewriteCond %{REQUEST_URI} /[\.]+(.*)$
Why can't i detect first dots