PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > A Little .htaccess Problem
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

A Little .htaccess Problem

Réponse
 
LinkBack Outils de la discussion
Vieux 23/01/2008, 02h46   #1
maria
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut A Little .htaccess Problem

I want to block, e.g, any IP address
of the type

208.111.154.

from my site. The following snipet in my .htaccess file
does not do it.

<Limit GET>
order allow, deny
deny from 208.111.154.
allow from all
</Limit>

What is wrong with it?
My site is on Powweb.
Thanks!

maria
  Réponse avec citation
Vieux 23/01/2008, 10h43   #2
John Clancy
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: A Little .htaccess Problem

On Tue, 22 Jan 2008 21:46:12 -0500, maria <maria@maria_de_napoli.com>
wrote:

>I want to block, e.g, any IP address
>of the type
>
>208.111.154.
>
>from my site. The following snipet in my .htaccess file
>does not do it.
>
><Limit GET>
>order allow, deny
>deny from 208.111.154.
>allow from all
></Limit>
>
>What is wrong with it?
>My site is on Powweb.
>Thanks!
>
>maria


Try order deny,allow

with "order allow,deny" the allow condition will be evaluated first,
since the allow condition allows all the deny condition would not be
evalutated

JC
  Réponse avec citation
Vieux 25/01/2008, 00h41   #3
HansH
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: A Little .htaccess Problem

"John Clancy" <JC@nospam.com> schreef in bericht
news:cg6ep3pkehqqmp0tli18vho4ed06s7plce@4ax.com...
> On Tue, 22 Jan 2008 21:46:12 -0500, maria <maria@maria_de_napoli.com>
>>of the type
>>208.111.154.
>>
>>from my site. The following snipet in my .htaccess file
>>does not do it.
>>
>><Limit GET>
>>order allow, deny
>>deny from 208.111.154.
>>allow from all
>></Limit>
>>

> Try order deny,allow
>
> with "order allow,deny" the allow condition will be evaluated first,
> since the allow condition allows all the deny condition would not be
> evalutated
>

http://httpd.apache.org/docs/2.2/mod...ost.html#order
Allow,Deny
First, all Allow directives are evaluated; at least one must match, or the
request is rejected. Next, all Deny directives are evaluated. If any
matches, the request is rejected. Last, any requests which do not match an
Allow or a Deny directive are denied by default.


To the OP:
There should not be a space in 'allow, deny' ...


HansH


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 10h39.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10599 seconds with 11 queries