Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 24, 2012, 09:36:32 AM

Pages: [1]   Go Down
  Print  
Author Topic: Protecting Directories  (Read 467 times)
phranx
Newbie
*
Offline Offline

Posts: 3


« on: June 21, 2003, 11:40:09 AM »

hi,

does anyone know how i can protect (password access or deny access) a subdomain and/or a (sub)directory (subdomain.domain.com or domain.com/subdir)?

... and only giving access to view the pages (domain.com/index.html, etc...).

thanks
Logged
Neco
Jabba the Hutt
*****
Offline Offline

Posts: 647


WWW
« Reply #1 on: June 21, 2003, 12:29:55 PM »

Ok maybe I can help out a little.

If you want to password protect you simply select the Web Protect option in your control panel.  Then you navigate to the directory you want to protect, and then click on that directories name.  There should be some options there to fuss with, but nothing serious or complicated. (you can always consult the Cpanel manual or ask here)

This works for subdomains as well, since they have a directory in the root directory

(i.e  http://sub.domain.com =  domain.com/sub)

Now if you want to give access to only view the pages, you can research this link here.

http://www.javascriptkit.com/howto/htaccess11.shtml
Logged

phranx
Newbie
*
Offline Offline

Posts: 3


« Reply #2 on: June 21, 2003, 12:35:01 PM »

great, thanks Neco.  access to view pages is what im looking for.  i will review the htaccess.shtml page youve listed below.


Quote from: Neco
Ok maybe I can help out a little.

If you want to password protect you simply select the Web Protect option in your control panel.  Then you navigate to the directory you want to protect, and then click on that directories name.  There should be some options there to fuss with, but nothing serious or complicated. (you can always consult the Cpanel manual or ask here)

This works for subdomains as well, since they have a directory in the root directory

(i.e  http://sub.domain.com =  domain.com/sub)

Now if you want to give access to only view the pages, you can research this link here.

http://www.javascriptkit.com/howto/htaccess11.shtml
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: