Treehouse: Grow your CSS skills. Land your dream job.

black all IP’s accept specified ones in htaccess?

  • # November 10, 2010 at 3:05 am

    Could someone tell me what to put in htaccess to block all Ips from accessing it, accept for the ips which i specify. and if i did this i could place the htaccess file directly in the folder i want to protect? i would prefer to do it like that if i could for this

    # November 10, 2010 at 10:39 am

    You could try something like this:

    Order Deny,Allow
    Deny from all
    Allow from 11.22.33.44

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.