mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-01 18:19:55 +00:00
parent
2e0abfe1e0
commit
0ae6b8594f
2 changed files with 3 additions and 2 deletions
1
.github/workflows/action.yml
vendored
1
.github/workflows/action.yml
vendored
|
@ -55,6 +55,7 @@ jobs:
|
|||
php ./dev-tools/generate-google-exclude.php
|
||||
./dev-tools/generate-files.sh
|
||||
./dev-tools/install-nginx-1.sh
|
||||
cat ./dev-tools/referrers-regex-format.txt
|
||||
|
||||
- name: Test Blocker - Stage 1
|
||||
shell: bash
|
||||
|
|
|
@ -69,7 +69,7 @@ class Generator
|
|||
*/
|
||||
protected function writeToFile($filename, $data)
|
||||
{
|
||||
$file = "./.dev-tools/referrers-regex-format.txt";
|
||||
$file = "./dev-tools/referrers-regex-format.txt";
|
||||
$handle = fopen($file, 'w') or die('Cannot open file: '.$file);
|
||||
fwrite($handle, $data);
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ class Generator
|
|||
*/
|
||||
public function createNginx(array $lines)
|
||||
{
|
||||
$file = "./.dev-tools/referrers-regex-format.txt";
|
||||
$file = "./dev-tools/referrers-regex-format.txt";
|
||||
$data = "";
|
||||
{
|
||||
foreach ($lines as $line) {
|
||||
|
|
Loading…
Add table
Reference in a new issue