This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# This file was written as an executable to be used in the auto report function | |
# of csf and lfd. By replacing $YOUR_API_KEY below with your abuseipdb api key, | |
# allows you to use this code to integrate your csf system with abuseipdb.com | |
# requires perl-JSON, perl-HTTP-Tiny | |
use strict; | |
use warnings; | |
use HTTP::Tiny; | |
use JSON; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Original code by Pross found here https://gist.github.com/Pross/3ff9f68fea20dcdc8845919dc51de90d | |
//-------------------------------------------------------------------------------------// | |
Version 1.0.0 | |
bdacus01 2020 found here https://gist.github.com/bdacus01/84171d9454e7ab4152be2edc65855c21 | |
Improvements to code: added api key, firstname, and customer filter list. | |
If new account doesn't have the first_name filled in pull it from the registration POST. | |
user_register does not write out to the database until after registration is complete. | |
This code is for WC Customers. We are assuming they bought products or created an account. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# | |
# Let first talk about the different types in YAML | |
# | |
# It is important to understand the differences and terms. | |
# Not just for configuration splitting, but in general! | |
# | |
# Scalar values: String, Integer, Float, Boolean, Null | |
# Comments | |
# Collections: List (sequence), Dictionary (mapping) (important for splitting!) |