0

I currently allow the following 2 specific IP addresses access to my dev server without a password:

AuthType Basic
AuthName "Protected Area"
AuthUserFile /home/server/htdocs/.htpasswd
AuthGroupFile /dev/null
require valid-user
Order allow,deny
Allow from 11.125.19.12
Allow from 11.59.193.12
satisfy any

WorldPay have just sent me these 2 ranges of IP addresses - how do I add those to my allow list? Does it work differently for ranges?

Possible solution 1:

AuthType Basic
AuthName "Protected Area"
AuthUserFile /home/server/htdocs/.htpasswd
AuthGroupFile /dev/null
require valid-user
Order allow,deny
Allow from 11.125.19.12
Allow from 11.59.193.12
Allow from 195.35.90
Allow from 195.35.91
satisfy any
James Wilson
  • 809
  • 3
  • 14
  • 25

1 Answers1

1

The possible solution you posted will allow the ranges 195.35.90.1 - 195.35.90.255 and 195.35.91.1 - 195.35.91.255 in addition to the 11.x.x.x IPs you allowed.

You can check out here for more details on the syntax of the Allow directive.

Regolith
  • 2,944
  • 9
  • 33
  • 50
sa289
  • 700
  • 3
  • 12