Kirill Che
Kirill Che

Reputation: 39

Directive allow from not work for only one ip in .htaccess

I have .htaccess file for wordpress. There is code

    <Files wp-login.php>
      order deny,allow
      deny from all
      allow from 46.61.xxx
      allow from 91.211.xxx
      allow from 176.14.xxx
    </files>

2 of these ip - works, i.e. i can enter from 46.61.xxx and 176.14.xxx, but i can't enter from 91.211.xxx. What problem could it be?

Upvotes: 0

Views: 36

Answers (1)

Picard
Picard

Reputation: 4112

Give it a try without those xxx's, check the apache documentation

<Files wp-login.php>
      order deny,allow
      deny from all
      allow from 46.61
      allow from 91.211
      allow from 176.14
</files>

Upvotes: 1

Related Questions