password protect a directory or admin folder to your ip only via .htaccess

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    password protect a directory or admin folder to your ip only via .htaccess

    1.Go to admin folder create 2 files .htacces and .htpasswd

    2.open .htacces

    put these code in it

    #remeber /home/admin is path complete path to admin folder
    AuthUserFile /home/admin/.htpasswd
    AuthName EnterPassword
    AuthType Basic
    <Limit GET POST>
    require valid-user
    </Limit>

    #123.456.678.467 => your ip
    order deny,allow
    deny from all
    allow from 123.456.678.467


    3.open .htpasswd

    #enter your username:passwd
    #you can add many user
    hi_jakkk:666666


    i just found it somewhere and it works...and shared for future or someone who need it..

    #2
    re

    Originally posted by hi_jakkk View Post
    1.Go to admin folder create 2 files .htacces and .htpasswd

    2.open .htacces

    put these code in it

    #remeber /home/admin is path complete path to admin folder
    AuthUserFile /home/admin/.htpasswd
    AuthName EnterPassword
    AuthType Basic
    <Limit GET POST>
    require valid-user
    </Limit>

    #123.456.678.467 => your ip
    order deny,allow
    deny from all
    allow from 123.456.678.467


    3.open .htpasswd

    #enter your username:passwd
    #you can add many user
    hi_jakkk:666666


    i just found it somewhere and it works...and shared for future or someone who need it..
    or u can goto cpanel and password protect directory that way









    Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
    Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

    Comment


      #3
      Originally posted by ozziemale31 View Post
      or u can goto cpanel and password protect directory that way
      right sir..i use your share

      Comment

      Working...
      X