Forum Moderators: phranque
2018-07-31:13:35:08
URL: /example/roseytoes/
IP: 76.66.*.*
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,en-US;q=0.9,en;q=0.8
Connection: keep-alive
Host: example.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36 OPR/54.0.2952.64
----
2018-07-31:13:35:08
URL: /favicon.ico
IP: 76.66.*.*
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,en-US;q=0.9,en;q=0.8
Connection: keep-alive
Host: example.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36 OPR/54.0.2952.64
2018-08-02:19:49:00
URL: /example/2016/11/21/first-snowfall-2016-2017-winter-toronto/
IP: 66.249.69.*
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,br
Connection: keep-alive
From: googlebot(at)googlebot.com
Host: example.com
If-Modified-Since: Sun, 29 Jul 2018 03:57:26 GMT
User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
X-Https: 1 If I ban nolang this would be an issue.You can also poke holes by name.
BrowserMatch Googlebot !bad-condition !other-bad-condition
and so on. In fact, this type of hole-poking is now the biggest part of my htaccess (at rough count, over 1/3 of all directives). Why do Russian bots have lang as English, but spam me in Russian?They probably think setting their language to English is more likely to get them past filters--and then they have to spam in Russian because they don’t know any other language. Or because their spam is targeted at other Russian-speaking members of the forum.
I cannot detect the language within the spam comment, but wish I could.Not even when it uses a non-Roman script? I should think it would be pretty trivial to screen posts for selected character ranges, alongside whatever screening is already in place (checking for malicious code injection attempts or similar). And then, if you have a lot of commentors who like throwing the odd Russian, Hebrew or Thai word into an otherwise legitimate English-language post, cross-check for [a-z] characters and put those few posts on hold for manual checking.
BrowserMatch Googlebot !bad-condition !other-bad-conditionWow, I did not know that. Hole poking by name is very convenient! My hole poking is growing.
BrowserMatch Googlebot !bad-condition !other-bad-condition
BrowserMatch Googlebot !bad-condition !other-bad-condition
SetEnvIf header-field-name header-field-value bad-condition
SetEnvIf header-field-name header-field-value other-bad-condition
<?php include ($_SERVER['DOCUMENT_ROOT'] . "/includes/logheaders.php"); ?> is this setup somehow limited to once per day/clock period?
<?php include ($_SERVER['DOCUMENT_ROOT'] . '/headerlogs/logheaders.php') ;?> hether there was a space between include and the opening parenthesis
Also, you should always use "require" instead of "include", this is better coding practice.Huh. I would have thought the opposite: that you only use “require” when there is other stuff in the script that won’t work properly if the part-to-be-included has gone missing. I see it like a clause in a contract: Require means if this one clause is invalid, the whole contract is void, while Include means the rest of the contract still applies, so good luck trying to weasel out of it ;)
RewriteRule ^includes/logheaders.php - [L]
(using, ahem, the actual physical URL of the logheaders file) before the CMS stuff. It shouldn't matter, though, since your average CMS ignores requests for files that physically exist on the server.