×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Artur Słaboszewski
Added: Jun 15, 2015 2:24 PM
Modified: Jun 15, 2015 2:26 PM
Views: 1910
Tags: access
  1. # ALLOW USER ACCESS BY IP
  2. <Limit GET POST>
  3.  order deny,allow
  4.  deny from all
  5.  allow from 1.2.3.4   # Allows one specific IP address
  6.  allow from 1.2.3.    # Allows IP address in the range 1.2.3.0 to 1.2.3.255 (ie.. 1.2.3.xxx)
  7.  allow from 1.2.      # Allows IP address in the range 1.2.xxx.xxx
  8.  allow from 1.2       # Allows IP address in the range 1.2xx.xxx.xxx
  9. </Limit>