Skip to content
/ trollr Public

Pantheon Drupal site blocked IPs comparision and additions

Notifications You must be signed in to change notification settings

jrya7/trollr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

trollr

Pantheon Drupal site blocked IPs comparision and additions

overview

  • takes a list of known bad actor IPs
  • pulls current list of IPs from Drupal table blocked_ips
  • compares the list and manually adds to the table via terminus drush
  • gathers 200 IP address then adds in a batch for performance

requirements

  • terminus (with active session from terminus auth:login)
  • drush
  • drupal 7
    • the ban functionality is part of the system module
  • drupal 8+
    • requires the ban module to be enabled

usage

  • Download or clone the repository to your local machine
  • Add any additional IPs you would like to ban to trolls.dat
  • Make the trollr-drupal.sh script executable by running
    • chmod 775 trollr-drupal.sh
  • Run the script
    • ./trollr-drupal.sh
    • Then follow the prompt options to enter which site you'd like to run it on
  • Or run the script by passing the sitename with the -s flag
    • ./trollr-drupal.sh -s SITENAME
    • The follow the prompt options to compete the script

About

Pantheon Drupal site blocked IPs comparision and additions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages