Hello,
I'm finding more and more of these types of rfi attacks in the logs. Will this code work in htaccess?
# RFI protection
RewriteCond %{QUERY_STRING} ^.*=(ht|f)tp\://.*$ [NC]
RewriteRule .* - [F]
Here are the log entries:
94.102.51.nnn - - "GET h**p://example.com/?PHPSESSID=(long string of numbers & letters here) HTTP/1.1" 404 - "-" "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12"
61.160.195.nnn - - "GET h**p://www.example.com/ HTTP/1.0" 404 - "h**p://www.example.com/" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)"
I have also blocked the IP ranges. But I would like to stop this type of exploit by any IP. Hoping that code will work.
[edited by: incrediBILL at 7:46 pm (utc) on Sep 3, 2012]
[edit reason] removed URL, no specifics please [/edit]