Skip to content

Instantly share code, notes, and snippets.

@lazy404
lazy404 / badbots.lst
Created March 30, 2016 20:54
A list of bad and "good" User-Agents (robots) that are worth blocking with haproxy. This will help stop your bandwidth being used up by these crawlers. I continually add to this list at least once a week. This is the haproxy rule I use. acl badbots hdr_reg(User-Agent) -i -f /etc/haproxy/badbots.lst block if badbots
# -----------------------------------------------------------------
# User-Agent strings that are worth blocking with the following rule
# in haproxy to prevent your content being stolen, stop spammers and
# to limit your bandwidth usage.
#
# acl badbots hdr_reg(User-Agent) -i -f /etc/haproxy/badbots.lst
# block if badbots
#
# By Danny Sheehan
# http://www.setuptips.com
@lazy404
lazy404 / nginx.conf
Last active August 29, 2015 14:07 — forked from plentz/nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048