Referrers / Bots (+/-)

- Fix to google-exclude generator script
- Some new bad words added to default bad-referrer-words.conf include file
This commit is contained in:
Mitchell Krog 2017-06-27 14:46:08 +02:00
parent acf4e71d82
commit 061b850f3b
3 changed files with 19 additions and 4 deletions

View file

@ -63,7 +63,7 @@ class Generator
*/
protected function writeToFile($filename, $data)
{
$file = __DIR__ . "/home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/$filename";
$file = "/home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/$filename";
$handle = fopen($file, 'w') or die('Cannot open file: '.$file);
fwrite($handle, $data);
}