.htaccess to only allow certain IPs

Discussion in 'HTML & Website Design' started by Cakk15, Apr 10, 2009.

  1. #1
    Is there a way I can make a .htaccess only allow certain IPs i choose and block the rest?
     
    Cakk15, Apr 10, 2009 IP
  2. GreatWebSuccess

    GreatWebSuccess Peon

    Messages:
    226
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The following code in your .htaccess should work withe the latest version of Apache

    order deny,allow
    deny from all
    allow from 123.123.123.123 
    Code (markup):
     
    GreatWebSuccess, Apr 11, 2009 IP