Hi, My site is being bombarded with weird request that are clearly spam and I want to block them in my .htaccess file. It seems that they all have one thing in common and that is they start with "http", so if I could detect that with a rewritecond and block it that would be perfect. Here are some examples of the page requests: http://www.mywebsite.co.uk/http://bublik.us/myip.php http://www.mywebsite.co.uk/http://login2.vip.kr1.yahoo.com/config/isp_verify_user?l=kaji.geo&p=***** http://www.mywebsite.co.uk/http://toolbarqueries.google.com/tbr?client=navclient-auto&ch=78404014493&features=Rank&q=info.ca&num=100&filter=0 http://www.mywebsite.co.uk/http://www.google.co.uk/search?complete=0&filter=0&output=ie&hl=en&q As you can see, they all have another website referenced in the path (show in red) I'm sure it must be possible to match this and block it, but I cant get it to work. Something like: RewriteCond %{REQUEST_URI} =^http.*?(http) RewriteRule .* - [F,L,E=spam:refspam] Code (markup): Any help would be appreciated. Thanks.
cloudflare.com can help you with this. signup for the free or paid account. if you need any more help private message me.