Kategorien
Apache shell Ubuntu

Apache Log – BadBots analysieren

grep -Eo "\(compatible;[[:space:]].*" /path/to/log | cut -f2 -d";" | sort -h | uniq -c | sort -h | tail -

 

Kategorien
Apache

Apache alles von http:// nach https:// umleiten

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}