Create a specific user for backups purpose with read-only permissions
GRANT SHOW DATABASES, SELECT, LOCK TABLES, RELOAD ON *.* to backup@localhost IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2082"></script>
it's also possibl with a .htaccess file and "deny from all " in that file
if (isset($_SERVER['REMOTE_ADDR'])) die('Permission denied.');
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2039"></script>
perl -le 'print crypt("password", "salt")'
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2000"></script>
/etc/apache2/apache2.conf
> ServerTokens Prod
> ServerSignature Off
/etc/php5/apache2/php.ini
> expose_php = Off
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1405"></script>
Most vulnerability scanners will complain about TRACE method being enabled on the web server tested. This tip disable it and return a 403 FORBIDDEN error to the client (apache versions newer than 1.3.34 for the legacy branch, and 2.0.55 for apache2).
This needs to be added in the main server config and the default is enabled (on):
TraceEnable Off
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1337"></script>
Permet par exemple de laisser des internautes déposer des fichiers dans un répertoire. Si on ne veut pas qu'ils puissent déposer un fichier PHP et l'exécuter, on peut vouloir empêcher l'exécution de PHP dans ce répertoire.
# ajouter la conf suivante dans votre VirtualHost
<Location /upload/>
AddType text/plain .php .php4 .php5 .phtml .py .pl .cgi .rb
</Location>
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1014"></script>
Prevent flooding
Switch# conf t
Switch1(config)# interface ethernet 0/4
Switch1(config-if)# port secure max-mac-count 100
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/688"></script>