Bloquer les aspirateurs de site web

Créer une fichier htaccess et ajouter: RewriteCond %{HTTP_USER_AGENT} wget [NC,OR] RewriteCond %{HTTP_USER_AGENT} Gigabot [NC,OR] RewriteCond %{HTTP_USER_AGENT} Xenu\ Link\ Sleuth [NC,OR] RewriteCond %{HTTP_USER_AGENT} larbin [NC,OR] RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR] RewriteCond %{HTTP_USER_AGENT} PhpDig [NC,OR] RewriteCond %{HTTP_USER_AGENT} WebCopier [NC,OR] RewriteCond %{HTTP_USER_AGENT} LWP::Simple [NC,OR] RewriteCond %{HTTP_USER_AGENT} libwww [NC,OR] RewriteCond %{HTTP_USER_AGENT} lwp-trivial [NC,OR] RewriteCond %{X-moz} prefetch RewriteRule .* – [F]  

Plus

Debian: installer PostgreSQL 10

Ajout du dépôt : Pour debian 7 # echo "deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main 10" >> /etc/apt/sources.list.d/pgdg.list Pour debian 8 # echo "deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main 10" >> /etc/apt/sources.list.d/pgdg.list Pour debian 9 # echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main 10" >> /etc/apt/sources.list.d/pgdg.list Ajout de la signature numérique du dépôt : # wget -O – http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | apt-key add – # apt-get update # apt-get install postgresql postgresql-contrib Pour vérifier l’installation: # ps -ef | grep postgre postgres 21217 1 0 10:21 ? […]

Plus