Skip to content

Instantly share code, notes, and snippets.

View jogerj's full-sized avatar
🟢
Online

Jonathan Joewono jogerj

🟢
Online
View GitHub Profile
@jogerj
jogerj / Generate Loginizer IP Blacklist or Whitelist
Last active August 18, 2020 17:52
Simple python script for generating IP address list for blacklist/whitelist on Loginizer plugin for Wordpress
# Loginizer is a WordPress plugin which helps you fight against bruteforce attack by blocking login for the IP
# after it reaches maximum retries allowed. You can blacklist or whitelist IPs for login using Loginizer.
#
# This python script generates config text from a list of ip address ranges.
# The list can be easily copy pasted from any table with 2 ip addresses each row.
#
# To filter by country of origin, use tables from https://lite.ip2location.com/ip-address-ranges-by-country
# The raw_ip.txt included in this gist is taken from https://lite.ip2location.com/china-ip-address-ranges
#
# To use, input ip ranges (separated by newline) in raw_ip.txt