This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name _; | |
access_log /var/log/nginx/localhost-access.log; | |
error_log /var/log/nginx/localhost-error.log; | |
index index.php index.html; | |
location /nagios { | |
auth_basic "Private"; | |
auth_basic_user_file /usr/local/nagios/etc/htpasswd.users; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Vider les tables actuelles | |
iptables -t filter -F | |
# Vider les règles personnelles | |
iptables -t filter -X | |
# Interdire toute connexion entrante et sortante | |
iptables -t filter -P INPUT DROP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function isBot() { | |
$bots = array( | |
'googlebot', | |
'adsbot-google', | |
'feedfetcher-google', | |
'yahoo', | |
'lycos', | |
'bloglines subscriber', | |
'dumbot', |