Forum Moderators: open
#referer spam
RewriteCond %{HTTP_REFERER} (pizza|burger|button|for-your-|semalt|seo|--production|x00_|s-anal|responsive-test)
RewriteRule .* - [F] [edited by: keyplyr at 10:52 pm (utc) on Mar 15, 2016]
[edit reason] depersonalized IP address [/edit]
/
Http Code: 200 Date: Mar 13 14:05:37 Http Version: HTTP/1.1 Size in Bytes: 24049
Referer: http://11409774.responsive-test.net/
Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36
[edited by: keyplyr at 10:54 pm (utc) on Mar 15, 2016]
[edit reason] depersonalized IP address [/edit]
unusual in that it fetches images and executes the statcounter code
why did it act differently on my site?
soft 403
:: idly wondering how many sites still have statcounters just because we never got around to deleting the code ::
RewriteCond %{THE_REQUEST} \.php
RewriteCond %{REQUEST_URI} !(real-url|other-real-url)
RewriteRule \.php - [R=404,NS]
The two elements %{THE_REQUEST} and [NS] are redundant, or what linguists call Double Markedness. Belt and suspenders. (Er, "belt and braces" for any passing Brits, unless you want a very odd mental picture. If you don't speak Apache: [NS] means "no subrequests", so the rule is ignored on things like includes or auto-indexing that really do use php, but only internally.) ...I can't remember if all those domain variations contain the try.php string but I'm guessing they do...
<rule name="blocking semalt referer spam" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_REFERER}" pattern="(try\.php\?u\=http)|(or\-something\-else)" />
</conditions>
<action type="AbortRequest" />
</rule>