Skip to content

Instantly share code, notes, and snippets.

View wrestrtdr's full-sized avatar

12345 wrestrtdr

  • on the earth...
View GitHub Profile
@wrestrtdr
wrestrtdr / modsec.rules
Created November 4, 2018 12:21 — forked from nopslider/modsec.rules
ModSec Rule Examples
# Redirect to a different page when a PHP file is uploaded
SecRule FILES "(?i)\.php$" "t:none,log,redirect:http://cyberis.co.uk,msg:'PHP file upload blocked',id:1"
# Deny when a semi-colon is found in the 'ip' parameter
SecRule ARGS:ip ";" "t:none,log,deny,msg:'semi colon test',id:2"
# Disable ModSecurity for a given page - NOTE THE ESCAPE OF THE '?'
SecRule REQUEST_URI "/joomla/index.php/component/users/\?task=registration.register" "allow,id:3"
@wrestrtdr
wrestrtdr / README.md
Created November 15, 2018 22:35 — forked from Uchean/README.md
Homebrew with DNSMasq + DNSCrypt-proxy (OpenDNS)

Install & Configure

  1. Install DNSMasq
$ brew install dnsmasq
  1. Install DNSCrypt-proxy
$ brew install dnscrypt-proxy