mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-04 19:50:17 +00:00
[MASTER][BETA] Fix Regex on Referrers REF: #277
This commit is contained in:
parent
5204d3d205
commit
e70a111c38
2 changed files with 2 additions and 2 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 .= '"' . '~*(?:\\' . 'b)' . preg_quote($line) . '(?:\\' . "b|)\" \t0;\n";
|
$data .= '"' . '~*(?:\\' . 'b)' . preg_quote($line) . '(?:\\' . "b)\" \t0;\n";
|
||||||
}
|
}
|
||||||
$this->writeToFile($file, $data);
|
$this->writeToFile($file, $data);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 .= '"' . '~*(?:\\' . 'b)' . preg_quote($line) . '(?:\\' . "b|)\" \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