############################################################################################## |
# __ _ __ _ # |
# __ ______/ / ______ _ ______(_) /_(_)__ ___ _ # |
# / // / __/ / / __/ -_) |/|/ / __/ / __/ / _ \/ _ `/ # |
# \_,_/_/ /_ / /_/ \__/|__,__/_/ /_/\__/_/_//_/\_, / # |
# /___/ # |
# # |
############################################################################################## |
# # |
# Titre : Blocage d'une adresse IP avec le fichier .htaccess # |
# # |
# Auteur : administrateur # |
# Date édition : 13 Mai 2008 # |
# # |
############################################################################################## |
# Première solution |
Order Allow,Deny |
Allow from all |
Deny from 123.456.789.123 |
# Deuxième solution |
RewriteEngine On |
RewriteCond %{REMOTE_ADDR} ^123.456.789.123$ |
RewriteRule .* - [F,L] |
|