Forum Moderators: phranque
http://www.example.com//example.com//example.com/https:/example.com/signup.php
I think they're malicious, as they always come in a bunch at a time from the same IP and with the referer very similar to the request.
These are becoming annoying so I'd like to serve requests like this a 403. I assume I need to come up with a rewrite rule to use in .htaccess that would detect repetitions of 'http' or my domain name. The problem is I have no idea how to do such a thing or what method would be best.
Has anyone else come up with a way to successfully combat these requests?
Thanks,
Matthew
Something like:
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /*(http://)?([^.]+\.)*example\.com(:[0-9]{1,5})?/ [NC]
RewriteRule .? - [F]
Jim
[edited by: jdMorgan at 3:09 am (utc) on Jan. 20, 2007]