Comment fermer son site web temporairement

Discussions et dépannage concernant Internet Explorer, Outlook Express, Netscape (Toutes versions)

Modérateur : Modérateurs

Répondre
McPeter
Membre hyperactif
Membre hyperactif
Messages : 756
Enregistré le : 02 juin 2005, 23:00:00

Message par McPeter » 17 mars 2003, 04:03:00

Salut

si vous êtes sur un server de type Apache (90% des serveurs <IMG SRC="/images/smiles/tounge_smile46.gif"> )

voilà  comment fermer tous les accès à  votre site sans avoir à tout modifier...
il faut créer deux fichier ".htaccess"
Utiliser Notepad de windows et faites enregistrer sous en mettant entre guillemets le nom de fichier
=> ".htacces"

soyez en mode ANSI et Tous fichiers

voilà  les codes
<TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font size=-1><b>Citation :</b></font></TD></TR></TABLE><TABLE BORDER=1 CELLPADDING=10 BORDERCOLOR=#FF0000 ALIGN=CENTER WIDTH=85%><TR BGCOLOR=#F3F2F4><TD><FONT SIZE=-1>
ErrorDocument 401 <a href="http://www.mon_site.com/error/index.html<br>ErrorDocument" target="_blank">http://www.mon_site.com/error/index.html<br>ErrorDocument</a> 403 <a href="http://www.mon_site.com/error/index.html<br>ErrorDocument" target="_blank">http://www.mon_site.com/error/index.html<br>ErrorDocument</a> 404 <a href="http://www.mon_site.com/error/index.html<br>ErrorDocument" target="_blank">http://www.mon_site.com/error/index.html<br>ErrorDocument</a> 500 <a href="http://www.mon_site.com/error/index.html<p>AuthName" target="_blank">http://www.mon_site.com/error/index.html<p>AuthName</a> "Site fermé"<br><LIMIT GET POST><br>order deny,allow<br>deny from all<br></LIMIT><br></p>
</FONT></TD></TR></TABLE>

ce premier ficheir est à  mettre à  la racine du site

ensuite créer un répertoire toujours à  la racine
ex : racine/error/
dans ce répertoire, mettez une page d'erreur genre :

<table width="400" border="1" cellspacing="0" cellpadding="10" align="center"><tr> <td style="font: 14px Verdana; color: #0092DE;"><h2 align="center" style="color:#FF0000">SITE FERME</h2><center>Pour <br>La liberté d'expression<br>La protection de la vie privée<br>Le 17 Mars 2003, protestons pendant 24 H<br><h3>Contre la loi LEN</h3> </center><br><br>Explications :<br><span style="font-size: 12px">=> <a href="http://odebi.nerim.net/0forumr12/0forum ... nerim.net  |  Odebi.nerim.net</a><br>=> <a href="http://www.vivrele.net/node/955.html">h ... vrele.net  |  Vivrele.net</a><br><br></span>Sites fermés :<br><span style="font-size: 10px">- <a href="http://blinckers-groups.com">http://blinckers-groups.com  |  BLINCKERS© Groups</a><br>- <a href="http://forums.blinckers-groups.com">http://forums.blinckers-groups.com</a><br>- <a href="http://optimizer-xp.blinckers-groups.com">http://optimizer-xp.blinckers-groups.com  |  Optimizer XP</a><br><br></span>Merci </td></tr></table>

ensuite faies un deuxième fichier ".htacces" à  mettre dans ce répertoire ("/error/")
le code :
<TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font size=-1><b>Citation :</b></font></TD></TR></TABLE><TABLE BORDER=1 CELLPADDING=10 BORDERCOLOR=#FF0000 ALIGN=CENTER WIDTH=85%><TR BGCOLOR=#F3F2F4><TD><FONT SIZE=-1>
AuthName "Site fermé"<br><LIMIT GET POST><br>order deny,allow<br>allow from all<br></LIMIT><br>
</FONT></TD></TR></TABLE>

le fonctionnement
le premier ".htacces" interdit l'acces à  tous les répertoires et sous répertoires du site, ainsi que la racine
et renvoi sur le fichier spécifié
ici : <a href="http://www.mon_site.com/error/index.html" target="_blank">http://www.mon_site.com/error/index.html</a>
le deuxième ".htacces" autorise l'accès dans le répertoire ("/error/")

voilà ...

@++
Image

Répondre

Retourner vers « Internet / Messagerie »

Qui est en ligne

Utilisateurs parcourant ce forum : Aucun utilisateur enregistré et 8 invités