treehouse : what would you like to learn today?
Web Design Web Development iOS Development

black all IP's accept specified ones in htaccess?

  • 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
  • You could try something like this:

    Order Deny,Allow
    Deny from all
    Allow from 11.22.33.44