Jump to content
wtf123

Protectie la XSS, RFI si SQLi cu mod_security

Recommended Posts

Posted (edited)

ModSecurity supplies an array of request filtering and other security features to the Apache HTTP Server, IIS and NGINX. ModSecurity is a web application layer firewall.

[sursa text wikipedia]

Instalare,Configurare:

Instalam:

yum install mod_security

Deschidem

/etc/httpd/modsecurity.d/modsecurity_crs_10_config.conf

Si introducem:

vi /etc/httpd/modsecurity.d/modsecurity_crs_10_config.conf

Ne asiguram ca

SecRuleEngine

e setat pe ON,pentru a ne putea proteja de atacuri.

Adaugam in httpd.conf urmatoarele lini:

<ifmodule mod_security.c>
SecFilterEngine On
SecFilterForceByteRange 1 255
</ifmodule>

[in caz ca nu le avem]

Repornim httpd

service httpd restart

[mai multe detalii despre instalare Installation ]

Orice greseala de gramatica/errori in asazisul "tutorial" Sunt bine venite,pentru a nu induce Userii/Vizitatorii in Eroare.

Edited by wtf123

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...