diff options
Diffstat (limited to 'delete_webform-submissions.php')
-rw-r--r-- | delete_webform-submissions.php | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/delete_webform-submissions.php b/delete_webform-submissions.php new file mode 100644 index 0000000..010a6d7 --- /dev/null +++ b/delete_webform-submissions.php @@ -0,0 +1,80 @@ +<?php + +define('DRUPAL_ROOT', getcwd()); + +include_once DRUPAL_ROOT . '/includes/bootstrap.inc'; +drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE); + +$ip_addr = array( + '112.111.181.181', + '112.111.181.98', + '112.111.182.76', + '175.42.83.192', + '175.42.83.237', + '175.42.88.183', + '175.42.88.7', + '175.44.46.155', + '175.44.46.55', + '175.44.47.19', + '175.44.60.200', + '216.178.108.232', + '222.77.203.202', + '24.43.161.10', + '36.248.179.118', + '36.248.191.42', + '58.22.73.69', + '58.22.74.199', + '91.236.74.246', + '112.111.182.79', + '168.161.192.17', + '175.44.61.56', + '198.188.61.154', + '27.159.223.6', + '31.133.13.244', + '36.248.188.85', + '36.248.189.70', + '58.22.66.31', + '58.22.67.102', + '58.22.75.85', + '112.111.181.183', + '112.111.183.72', + '175.44.60.215', + '175.44.60.243', + '209.249.231.249', + '36.250.168.154', + '175.42.88.141', + '27.159.225.93', + '27.159.227.212', + '58.22.143.197', + '58.22.143.9', + '175.42.88.247', + '58.22.142.127', + '58.22.159.67', + '175.44.60.174', + '208.105.72.134', + '36.250.164.235', + '112.111.182.220', + '175.42.88.74', + '58.22.73.20', + '36.248.177.121', + '36.250.169.18', + '58.22.142.113', + '27.159.225.126', + '63.141.228.2', + '58.22.141.222', + '110.85.126.88', + '27.159.221.80', + '36.248.177.69', + '120.40.156.139', + '27.159.220.44', + '117.26.252.215', + '31.41.216.109', + '27.159.225.188', + '110.89.53.251', + '59.58.113.134', + '110.89.52.243', + '27.153.228.27'); + +db_delete('webform_submissions') + ->condition('remote_addr', $ip_addr, 'IN') + ->execute(); |