mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 18:50:13 +00:00
FIX Word Boundary Regex on Bad Referrers
This commit is contained in:
parent
fdcfdbf4e7
commit
622e459a33
2 changed files with 2 additions and 2 deletions
|
@ -258,7 +258,7 @@ rm $_inputdb4
|
|||
printf '%s\n' "$_start5" >> "$_tmpnginx5"
|
||||
while IFS= read -r LINE
|
||||
do
|
||||
printf '\t%s%s%s\n' "\b" "${LINE}" "\b" >> "$_tmpnginx5"
|
||||
printf '\t%s\n' "${LINE}" >> "$_tmpnginx5"
|
||||
done < $_input5
|
||||
printf '%s\n' "$_end5" >> "$_tmpnginx5"
|
||||
mv $_tmpnginx5 $_inputdb5
|
||||
|
|
|
@ -84,7 +84,7 @@ class Generator
|
|||
$data = "";
|
||||
{
|
||||
foreach ($lines as $line) {
|
||||
$data .= "\"~*" . preg_quote($line) . "\" \t1;\n";
|
||||
$data .= "\"~*\b" . preg_quote($line) . "\"\b" "\t1;\n";
|
||||
}
|
||||
$this->writeToFile($file, $data);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue