Natra
Natra

Reputation: 41

.htaccess Deny From All - IPv6 & Domains Not Allowing

I'm trying to set up where I can deny all IPs and allow only certain of them in. But the only thing that is working is IP4s and not either IPv6 or domains.

Please let me know if I'm missing something. It doesn't seem to work no matter what permutation.


order deny,allow
deny from all
allow from 67.93.23.3
allow from 127.133.23.33
allow from 2632:336:3639:2b30:b347:33d4:f135:f313
allow from domain.com

<RequireAll>
    Require all denied
    Require ip 64.91.24.3
    Require ip 2442:346:8355:8fa0:1110:3f47:198f:e80d
</RequireAll>

Upvotes: 4

Views: 11970

Answers (1)

Thomas Sch&#228;fer
Thomas Sch&#228;fer

Reputation: 105

    order deny,allow
    deny from all
    allow from ip

is deprecated.

Use

    Require ip ip.address

instead.

Reference.

Upvotes: 4

Related Questions