mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-04 03:29:57 +00:00
FIX Regex for Word Boundaries on Bad Referrers - PATCH by @funilrys
This commit is contained in:
parent
83afe11f6d
commit
6d5b5e5dff
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ class Generator
|
||||||
{
|
{
|
||||||
foreach ($lines as $line) {
|
foreach ($lines as $line) {
|
||||||
//$data .= "\"~*\b" . preg_quote($line) . "\"\b" "\t1;\n";
|
//$data .= "\"~*\b" . preg_quote($line) . "\"\b" "\t1;\n";
|
||||||
$data .= "\"~*" . preg_quote($line) . "\" \t1;\n";
|
$data .= '"' . '~*\\' . 'b' . preg_quote($line) . '\\' . "b\" \t1;\n";
|
||||||
}
|
}
|
||||||
$this->writeToFile($file, $data);
|
$this->writeToFile($file, $data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue