You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 19, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ Here are a few of HTTP:BL's features
14
14
5. Flush the log table and start fresh whenever you want.
15
15
6. Self-managing: this plugin will (optionally) drop its tables when deactivated, and will create its own tables on activation.
16
16
7. Whitelist IP addressess to skip checks; autodetection and 1-click addition of the current IP.
17
+
8. An API for White-List maintanence.
17
18
18
19
## REQUIREMENTS
19
20
@@ -31,6 +32,7 @@ Here are a few of HTTP:BL's features
31
32
- `ip` the offending IP address
32
33
- `type` the threat type (eg: content spammer)
33
34
- `level` the threat level (0-255)
35
+
5. For information regarding the API, see the http:BL page in the Admin area.
34
36
35
37
#### NOTE:
36
38
In order for this to work on your public page you have to make sure that
@@ -46,6 +48,10 @@ include 'header.php';
46
48
#### NOTE:
47
49
The sql table may need to be added manually using `httpBL/assets/httpBL.sql`
48
50
51
+
52
+
#### HINT:
53
+
Use a script that manages callbacks and stores IP addresses in a flat file to update and delete IP's in the white-list automagically via cron.
54
+
49
55
### TODO:
50
56
1. Add dynamic and randomized honeypot "quicklinks" to all rendered pages - this will likely come in the form of a custom index page, or footer script.
<p>This plugin exposes a simple API for White List updating and maintanence. Using a cron job, an admin could keep an IP with a dynamically updating address current in the white-list.</p>
236
+
<ul>
237
+
<li><code>action=httpBL</code> If sent alone, the transmitting IP will be added to the white-list if it is absent.</li>
238
+
<li><code>note=STRING</code> Notes for when adding IP's to the white-list. Optional.</li>
<p>Look here for more info on <a href="https://help.ubuntu.com/community/CronHowto" target="_blank" >cron</a> and <a href="https://www.gnu.org/software/wget/manual/html_node/HTTP-Options.html" target="_blank">wget</a>.</p>
247
+
</div>
227
248
</div>
228
249
</div>
229
250
HTML;
@@ -951,4 +972,120 @@ function httpBL_deactivate() {
951
972
}
952
973
}
953
974
}
975
+
/*
976
+
*
977
+
* API
978
+
*
979
+
* action=httpBL-WL
980
+
*
981
+
* Optional:
982
+
* notes='STRING'
983
+
*
984
+
* Alternate:
985
+
* deleteIP='IP_ADDRESS'
986
+
*
987
+
*/
988
+
// This funtion exposes an API to check and whitelist an IP (think cron)
0 commit comments