Skip to content

Instantly share code, notes, and snippets.

View dajve's full-sized avatar

Dajve Green dajve

View GitHub Profile

For an array passed with values

$tags = ['tag1','tag2','foo','bar']

the resulting $query will be

SELECT * FROM (
		SELECT 
 p.id
@dajve
dajve / IP Blacklist
Created December 9, 2016 15:16
IP Addresses identified as attempting malicious behaviour against either Magento or Wordpress installations
deny 183.90.173.109;
deny 195.88.6.173;
deny 80.87.205.100;
deny 80.87.205.101;
deny 80.87.205.102;
deny 80.87.205.103;
deny 80.87.205.104;
deny 80.87.205.105;
deny 80.87.205.106;
deny 80.87.205.107;