Banner Grabbing verhindern

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Apache

install modsecurity

  • apt-get install libapache2-modsecurity

enable moduls

  • a2enmod headers
  • a2enmod security2

modsecurity.conf kopieren

  • cp /etc/modsecurity/modsecurity.conf-recommended /etc/modsecurity/modsecurity.conf

modsecurity.conf anfügen

SecRuleEngine on
ServerTokens Full
SecServerSignature "Microsoft-IIS/6.0"

apache neustarten

  • service apache2 restart

oder

  • systemctl restart apache2

IIS