1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Restrict Admin Access

Discussion in 'PHP' started by oo7ml, Feb 13, 2013.

  1. #1
    Hi, i want to restrict admin access to the admin area of my website.

    I was thinking of whitelisting all the IP addresses that are allowed to access the admin area.

    Is there a service that you can pay for that will allow you to connect through some sort of virtual tunnel, so that you can be guaranteed to have the same IP address regardless of your location, as you will be using the tunnel IP address... not sure if this makes sense... OR maybe you have a better way, thanks in advance...
     
    oo7ml, Feb 13, 2013 IP
  2. Cartrafficcontroller.com

    Cartrafficcontroller.com Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #2
    Not sure of a service, but this(IP whitelist) is pretty easy to accomplish using .htaccess. Additionally, I'd remove the "admin" user and create another user with administrative rights. I think that should take care of most concerns and of course you might want to monitor your logs to look for anything unusual. However, it's my understanding that most attacks are done by automation, so unless you feel like you might have some concentrated human effort to attack your site, the above should fit the bill.

    Additionally, depending on the type of service you run you may want to block entire countries which you don't do business with. This won't take care of proxies, but could keep away some kids playing games.
     
  3. iitstudent

    iitstudent Banned

    Messages:
    43
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    23
    #3
    The best way to restrict admin is to use IP address blocking. But if you are looking for some other solutions you should go for the Virtual private network which can be set to access at particular location only
     
    iitstudent, Feb 13, 2013 IP
    worldart likes this.
  4. Anveto

    Anveto Well-Known Member

    Messages:
    697
    Likes Received:
    40
    Best Answers:
    19
    Trophy Points:
    195
    #4
    Restricting IP access with htaccess is probably your best solution, then you can get a dedicated private proxy which should always give you the same ip. If you know your own ip and if it does not change you could simply use that ip, I have a homeserver on my own ip since my ip only changes when I restart my modem and I keep it on at all times.

    However this may not be the best way to secure your site since it can be annoying if you can't get to that whitelisted ip. You might consider implementing an email verification system for computers which are not known for example, I believe facebook can be configured to do this. The site will remember which computers are whitelisted and if a non-whitelisted computer is used a verification email is sent to the users email for them to verify before logging in, thus if someone else tries to access your admin area they would need to have access to your specified email as well.
     
    Anveto, Feb 13, 2013 IP
  5. phucvh.jveo

    phucvh.jveo Greenhorn

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #5
    i think best solution is htaccess, you should generate a file htpasswd for login to admin area(need user and pass to login).
    best for you !
     
    phucvh.jveo, Feb 13, 2013 IP
  6. LarueOutlaw

    LarueOutlaw Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #6
    VPN is really a one of the best way to restrict Admin access for ur website......I have tried for my website too,and it works.
     
    LarueOutlaw, Feb 13, 2013 IP
  7. Frangemc

    Frangemc Well-Known Member

    Messages:
    193
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    143
    Digital Goods:
    1
    #7

    Are you talking about a proxy?
     
    Frangemc, Feb 13, 2013 IP