Htaccess File

travisnapoleansmith/OneSolutionCMS2.1/master/Tier4-AuthenticationLayer/.htaccess

#Sets ServerAddress from Server_Addr from the header and only allows that ip address to access SoapServerAuthenticationLayer.php
SetEnvIf Server_Addr ^b(?:d{1,3}.){3}d{1,3}b ServerAddress
#SetEnvIf Server_Addr ^b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)b ServerAddress
#SetEnvIf Server_Addr ^b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)b ServerAddress
#SetEnvIf Server_Addr ^bd{1,3}.d{1,3}.d{1,3}.d{1,3}b ServerAddress

<Files SoapServerAuthenticationLayer.php>
  order deny,allow
  deny from all
  allow from env=ServerAddress
</Files>
Exit mobile version