You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by ks <ke...@softhome.net> on 2002/01/13 11:41:30 UTC
limit at .htaccess question
Needed result
I am trying to limit access to my server using .htaccess <limit> option based on top level domain. For example, i do not wish people from .it (just example) to access my site
so,i am including this with my .htaccess file, which is in / dir
AuthUserFile /
AuthGroupFile /
AuthName "Disallow"
AuthType Basic
order deny,allow
deny from *.it
allow from all
and it doesn't work, the server is red hat 7.2, with newest Apache HTTP 2.0
I will be thankful for any advise
ks,
kesov@softhome.net
Re: limit at .htaccess question
Posted by $Bill Luebkert <db...@wgn.net>.
ks wrote:
> Needed result
>
> I am trying to limit access to my server using .htaccess <limit> option
> based on top level domain. For example, i do not wish people from .it
> (just example) to access my site
>
>
>
> so,i am including this with my .htaccess file, which is in / dir
>
>
>
> AuthUserFile /
> AuthGroupFile /
> AuthName "Disallow"
> AuthType Basic
> order deny,allow
> deny from *.it
> allow from all
>
>
>
> and it doesn't work, the server is red hat 7.2, with newest Apache HTTP 2.0
1) Try it inside of a <Directory> block:
2) Try leaving the * off.
3) If the IP address doesn't resolve, you won't be able to get the hostname.
<Directory /docroot>
Order Allow,Deny
Allow from all
Deny from .it
</Directory>
--
,-/- __ _ _ $Bill Luebkert ICQ=14439852
(_/ / ) // // DBE Collectibles Mailto:dbe@todbe.com
/ ) /--< o // // http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_ Castle of Medieval Myth & Magic http://www.todbe.com/
AW: limit at .htaccess question
Posted by Johannes Alberti <j....@dongleware.net>.
Hi,
try this ;)
order deny,allow
deny from *.it
allow from all
i think you do not want the guests to authentificate so you do not have to
type anything else in your .htaccess file than
the above.
regards,
Johannes Alberti
-----Ursprungliche Nachricht-----
Von: ks [mailto:kesov@softhome.net]
Gesendet: Sonntag, 13. Januar 2002 11:42
An: dev@httpd.apache.org; current-testers@apache.org
Betreff: limit at .htaccess question
Needed result
I am trying to limit access to my server using .htaccess <limit> option
based on top level domain. For example, i do not wish people from .it
(just example) to access my site
so,i am including this with my .htaccess file, which is in / dir
AuthUserFile /
AuthGroupFile /
AuthName "Disallow"
AuthType Basic
order deny,allow
deny from *.it
allow from all
and it doesn't work, the server is red hat 7.2, with newest Apache HTTP
2.0
I will be thankful for any advise
ks,
kesov@softhome.net