Jump to content

.htaccess And Ip-address-based Restrictions

Recommended Posts

I know that with Apache it's possible in the httpd.conf file to limit access to a certain directory based on the IP address of the person visiting the website, and I had thought it was possible using .htaccess files as well. Does anyone know how I might go about setting that up for a particular subdomain? I already have www.foo.com, and I want to make semiprivate.foo.com be available to people who either have a password, or who visit from certain domains or IP addresses. Can I do that? Thanks.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...