PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > Apache1.3.xx endless deny-list - howto?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

Apache1.3.xx endless deny-list - howto?

Réponse
 
LinkBack Outils de la discussion
Vieux 02/05/2005, 12h57   #1
Jens Vieler
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Apache1.3.xx endless deny-list - howto?

hi list,

i have to build up very big IP-deny-list for n directories, where
each list is the same. so what am i searching for is something like

#define mylist a.mycompany.com b.mycompany.com c.mycompany.com
<Directory "/anywhere">
Order Allow,Deny
Allow from mycompany.com
Deny from $mylist
AuthName "FernUni Intern"
AuthType Basic
</Directory>

or should i use

<Directory "/anywhere">
Order Allow,Deny
Allow from mycompany.com
Include mydenylist.conf
AuthName "FernUni Intern"
AuthType Basic
</Directory>

with a one-line mydenylist.conf

Deny a.mycompany.com b.mycompany.com c.mycompany.com

in it? any is welcome
jens
  Réponse avec citation
Vieux 03/05/2005, 18h40   #2
Jim Hayter
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache1.3.xx endless deny-list - howto?

On 2 May 2005 11:57:02 GMT, in comp.infosystems.www.servers.unix,
jens.vieler@fernuni-hagen.de (Jens Vieler) wrote:

>hi list,
>
>i have to build up very big IP-deny-list for n directories, where
>each list is the same. so what am i searching for is something like
>
>#define mylist a.mycompany.com b.mycompany.com c.mycompany.com
><Directory "/anywhere">
> Order Allow,Deny
> Allow from mycompany.com
> Deny from $mylist
> AuthName "FernUni Intern"
> AuthType Basic
></Directory>
>
>or should i use
>
><Directory "/anywhere">
> Order Allow,Deny
> Allow from mycompany.com
> Include mydenylist.conf
> AuthName "FernUni Intern"
> AuthType Basic
></Directory>
>
>with a one-line mydenylist.conf
>
>Deny a.mycompany.com b.mycompany.com c.mycompany.com
>
>in it? any is welcome


In Apache 2, I was able to create a deny_acccess.include file of "deny
from ..." lines and use:
<Directory "/anywhere">
Order Allow,Deny
Allow from mycompany.com
Include deny_access.include
AuthName "FernUni Intern"
AuthType Basic
</Directory "/anywhere">

Unfortunately, the above does NOT work in Apache 1 (at least it didn't
the last time I tried it). In Apache 1, I've ended up creating a
deny_access.include that has the <Directory>...</Directory> config
info and the list of denied IPs exists in each Directory section.
This is a pain.

If you come up with a better mechanism, please let me know.

HTH,
Jim
  Réponse avec citation
Vieux 04/05/2005, 07h47   #3
Jens Vieler
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache1.3.xx endless deny-list - howto?

hi jim,

thank you, but i had to solve it for 1.3.x. so what i found
is a combination with SetEnvIf and Remote_Addr and it looks
like this:

in the general settings i build up a list of

SetEnvIf Remote_Addr "a.b.c." no_office
SetEnvIf Remote_Addr "a.b.d." no_office

and later in the <directory>-part i use

Allow from a.b.
Deny from env=no_office

that works fine! :-)
regards
jens
  Réponse avec citation
Vieux 04/05/2005, 14h53   #4
Jim Hayter
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache1.3.xx endless deny-list - howto?

On 4 May 2005 06:47:11 GMT, in comp.infosystems.www.servers.unix,
jens.vieler@fernuni-hagen.de (Jens Vieler) wrote:

>hi jim,
>
>thank you, but i had to solve it for 1.3.x. so what i found
>is a combination with SetEnvIf and Remote_Addr and it looks
>like this:
>
>in the general settings i build up a list of
>
> SetEnvIf Remote_Addr "a.b.c." no_office
> SetEnvIf Remote_Addr "a.b.d." no_office
>
>and later in the <directory>-part i use
>
> Allow from a.b.
> Deny from env=no_office
>
>that works fine! :-)
>regards
> jens


Hi Jens,

Thanks for the above. It is certainly simpler than what I've been
using.

Jim
  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 10h31.


É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,11371 seconds with 12 queries