How to put .htaccess in wp-admin wordpress folder

Discussion in 'Security' started by mike4uuu, Sep 5, 2011.

  1. #1
    I m trying to put a .htaccess file in wp-admin folder of my wordpress so that it can be accessble by me only !

    Problem is , my ISP is not giving me a static ip and keep changing ... but all in the range of

    14.98.xxx.xxx

    its changing only in this format 14.98.xxx.xxx

    how can i put ip restriction

    Many thanks in advance !
     
    mike4uuu, Sep 5, 2011 IP
  2. bhuthecoder

    bhuthecoder Member

    Messages:
    245
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    43
    #2
    Use this code
    
    order deny,allow
    allow from 99.88.*.*
    deny from all
    
    Code (markup):
     
    bhuthecoder, Sep 5, 2011 IP
  3. mike4uuu

    mike4uuu Active Member

    Messages:
    832
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #3
    I tried that , its blocking me also .. instead its showing 404 error

    but when i put the whole ip , it works
    
    order deny,allow
    allow from 99.88.23.12
    deny from all
    
    Code (markup):
    can u plz guide me

     
    mike4uuu, Sep 6, 2011 IP
  4. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #4
    Don't use * while defining the subnet. Use the following:

    OR

     
    madaboutlinux, Sep 6, 2011 IP