sefinek24 -> sefinek
This commit is contained in:
parent
f7b0a5ce94
commit
89fa07ccf5
5 changed files with 13 additions and 13 deletions
|
|
@ -10,7 +10,7 @@ CLOUDFLARE_API_KEY=0000000000000000000000000000000000000000
|
||||||
# AbuseIPDB (https://www.abuseipdb.com/account/api)
|
# AbuseIPDB (https://www.abuseipdb.com/account/api)
|
||||||
ABUSEIPDB_API_KEY=00000000000000000000000000000000000000000000000000000000000000000000000000000000
|
ABUSEIPDB_API_KEY=00000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
|
|
||||||
# API key for api.sefinek.net. Contact me at contact@sefinek.net to obtain it and contribute to the sefinek24/Malicious-IP-Addresses. Leave empty if you don't have a token.
|
# API key for api.sefinek.net. Contact me at contact@sefinek.net to obtain it and contribute to the sefinek/Malicious-IP-Addresses. Leave empty if you don't have a token.
|
||||||
SEFINEK_API_SECRET=
|
SEFINEK_API_SECRET=
|
||||||
|
|
||||||
############################### CYCLES ###############################
|
############################### CYCLES ###############################
|
||||||
|
|
@ -33,7 +33,7 @@ SUCCESS_COOLDOWN=500
|
||||||
IP_REFRESH_INTERVAL=80
|
IP_REFRESH_INTERVAL=80
|
||||||
|
|
||||||
############################### SEFINEK API ###############################
|
############################### SEFINEK API ###############################
|
||||||
# Report IP addresses to api.sefinek.net to support the development of the repository at https://github.com/sefinek24/Malicious-IP-Addresses. SEFINEK_API_SECRET is required if true.
|
# Report IP addresses to api.sefinek.net to support the development of the repository at https://github.com/sefinek/Malicious-IP-Addresses. SEFINEK_API_SECRET is required if true.
|
||||||
REPORT_TO_SEFINEK_API=false
|
REPORT_TO_SEFINEK_API=false
|
||||||
|
|
||||||
# How often should the log (reported_ips.csv) be analyzed and sent to the Sefinek API? In hours.
|
# How often should the log (reported_ips.csv) be analyzed and sent to the Sefinek API? In hours.
|
||||||
|
|
|
||||||
12
README.md
12
README.md
|
|
@ -2,8 +2,8 @@
|
||||||
This project offers an automated script that collects and reports IP addresses that have triggered Cloudflare firewall events.
|
This project offers an automated script that collects and reports IP addresses that have triggered Cloudflare firewall events.
|
||||||
In simple terms, it enables the reporting of incidents detected by Cloudflare WAF to the AbuseIPDB database.
|
In simple terms, it enables the reporting of incidents detected by Cloudflare WAF to the AbuseIPDB database.
|
||||||
|
|
||||||
If you're looking for **effective WAF Expressions**, you're in the right place! Check out [sefinek24/Cloudflare-WAF-Expressions](https://github.com/sefinek24/Cloudflare-WAF-Expressions).
|
If you're looking for **effective WAF Expressions**, you're in the right place! Check out [sefinek/Cloudflare-WAF-Expressions](https://github.com/sefinek/Cloudflare-WAF-Expressions).
|
||||||
Also, take a look at [sefinek24/UFW-AbuseIPDB-Reporter](https://github.com/sefinek24/UFW-AbuseIPDB-Reporter) for UFW.
|
Also, take a look at [sefinek/UFW-AbuseIPDB-Reporter](https://github.com/sefinek/UFW-AbuseIPDB-Reporter) for UFW.
|
||||||
|
|
||||||
> If you like this repository or find it useful, I would greatly appreciate it if you could give it a star ⭐. Thanks a lot!
|
> If you like this repository or find it useful, I would greatly appreciate it if you could give it a star ⭐. Thanks a lot!
|
||||||
|
|
||||||
|
|
@ -14,7 +14,7 @@ Also, take a look at [sefinek24/UFW-AbuseIPDB-Reporter](https://github.com/sefin
|
||||||
|
|
||||||
|
|
||||||
## 📃 Information
|
## 📃 Information
|
||||||
If you want to make changes to the script from this repository, please kindly [fork](https://github.com/sefinek24/Node-Cloudflare-WAF-AbuseIPDB/fork) it first.
|
If you want to make changes to the script from this repository, please kindly [fork](https://github.com/sefinek/Node-Cloudflare-WAF-AbuseIPDB/fork) it first.
|
||||||
|
|
||||||
|
|
||||||
## 🌌 Example Report
|
## 🌌 Example Report
|
||||||
|
|
@ -31,7 +31,7 @@ Ray ID: 8c53354d5c885c4d
|
||||||
Rule ID: badscore
|
Rule ID: badscore
|
||||||
UA: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.53 Safari/537.36
|
UA: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.53 Safari/537.36
|
||||||
|
|
||||||
Report generated by Node-Cloudflare-WAF-AbuseIPDB https://github.com/sefinek24/Node-Cloudflare-WAF-AbuseIPDB
|
Report generated by Node-Cloudflare-WAF-AbuseIPDB https://github.com/sefinek/Node-Cloudflare-WAF-AbuseIPDB
|
||||||
```
|
```
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
@ -42,7 +42,7 @@ Report generated by Node-Cloudflare-WAF-AbuseIPDB https://github.com/sefinek24/N
|
||||||
## 📥 Installation
|
## 📥 Installation
|
||||||
1. Clone the repository.
|
1. Clone the repository.
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/sefinek24/Node-Cloudflare-WAF-AbuseIPDB.git
|
git clone https://github.com/sefinek/Node-Cloudflare-WAF-AbuseIPDB.git
|
||||||
```
|
```
|
||||||
2. Install dependencies.
|
2. Install dependencies.
|
||||||
```bash
|
```bash
|
||||||
|
|
@ -92,7 +92,7 @@ Visit [www.abuseipdb.com/account/api](https://www.abuseipdb.com/account/api).
|
||||||
|
|
||||||
|
|
||||||
## 😉 Issues and Pull requests
|
## 😉 Issues and Pull requests
|
||||||
If you need help or have any questions, feel free to create a new [Issue](https://github.com/sefinek24/Node-Cloudflare-WAF-AbuseIPDB/issues). If you'd like to contribute to the project, go ahead and open a [Pull request](https://github.com/sefinek24/Node-Cloudflare-WAF-AbuseIPDB/pulls). Thank you!
|
If you need help or have any questions, feel free to create a new [Issue](https://github.com/sefinek/Node-Cloudflare-WAF-AbuseIPDB/issues). If you'd like to contribute to the project, go ahead and open a [Pull request](https://github.com/sefinek/Node-Cloudflare-WAF-AbuseIPDB/pulls). Thank you!
|
||||||
|
|
||||||
|
|
||||||
## 💕 Credits
|
## 💕 Credits
|
||||||
|
|
|
||||||
|
|
@ -11,13 +11,13 @@
|
||||||
"abuseipdb-reporting",
|
"abuseipdb-reporting",
|
||||||
"node-abuseipdb"
|
"node-abuseipdb"
|
||||||
],
|
],
|
||||||
"homepage": "https://github.com/sefinek24/Node-Cloudflare-WAF-AbuseIPDB#readme",
|
"homepage": "https://github.com/sefinek/Node-Cloudflare-WAF-AbuseIPDB#readme",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/sefinek24/Node-Cloudflare-WAF-AbuseIPDB/issues"
|
"url": "https://github.com/sefinek/Node-Cloudflare-WAF-AbuseIPDB/issues"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/sefinek24/Node-Cloudflare-WAF-AbuseIPDB.git"
|
"url": "git+https://github.com/sefinek/Node-Cloudflare-WAF-AbuseIPDB.git"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "Sefinek <contact@sefinek.net> (https://sefinek.net)",
|
"author": "Sefinek <contact@sefinek.net> (https://sefinek.net)",
|
||||||
|
|
|
||||||
|
|
@ -19,5 +19,5 @@ module.exports = it => {
|
||||||
return `Triggered Cloudflare WAF (${it.source}) from ${it.clientCountryName}.
|
return `Triggered Cloudflare WAF (${it.source}) from ${it.clientCountryName}.
|
||||||
${reportLines.join('\n')}
|
${reportLines.join('\n')}
|
||||||
|
|
||||||
Report generated by Node-Cloudflare-WAF-AbuseIPDB https://github.com/sefinek24/Node-Cloudflare-WAF-AbuseIPDB`;
|
Report generated by Node-Cloudflare-WAF-AbuseIPDB https://github.com/sefinek/Node-Cloudflare-WAF-AbuseIPDB`;
|
||||||
};
|
};
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
const axios = require('axios');
|
const axios = require('axios');
|
||||||
const { version } = require('../package.json');
|
const { version } = require('../package.json');
|
||||||
|
|
||||||
axios.defaults.headers.common['User-Agent'] = `Mozilla/5.0 (compatible; WAF-To-AbuseIPDB/${version}; +https://github.com/sefinek24/Node-Cloudflare-WAF-AbuseIPDB)`;
|
axios.defaults.headers.common['User-Agent'] = `Mozilla/5.0 (compatible; WAF-To-AbuseIPDB/${version}; +https://github.com/sefinek/Node-Cloudflare-WAF-AbuseIPDB)`;
|
||||||
axios.defaults.timeout = 12000;
|
axios.defaults.timeout = 12000;
|
||||||
|
|
||||||
module.exports = { axios, moduleVersion: version };
|
module.exports = { axios, moduleVersion: version };
|
||||||
Loading…
Add table
Reference in a new issue