icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old October 5th, 2003, 10:22 AM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2003
3 posts
Gave thanks: 0
Thanked 0 times
Hi all.....
Im trying to add a access password to one of my html pages - but i cant seam to do this in cPanel,it only lets me add password to directories......can anyone help me ??

Many Thanks

Archer
Archer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 5th, 2003, 10:45 AM   #2 (permalink)
Registered User
Super #1
 
Joined in Jul 2003
Lives in So. NJ
1,557 posts
Gave thanks: 0
Thanked 9 times
As far as I know, you can only limit access to all files within a directory unless you use some intricate scripting that I don't know about.

You cannot limit access to one file in a directory and not limit access to another file in the same directory.

Note that subdirectories of an access-limited directory are also limited by the same access restrictions as the parent directory.

As a temporary solution, you could always move that one file to a protected directory that you will use for all password protected files.
__________________
Dime13 | Pass17
snide is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 5th, 2003, 11:38 AM   #3 (permalink)
Surpass Fan
Seasoned Poster
 
mvital's Avatar
 
Joined in Sep 2003
Lives in LISBON - Portugal
Hosted on VITAL
47 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
i can send you an script in java or another more comlpeted in PHP / Mysql .

PM me if u want .
__________________
-----------------------------------------------------------------------
Mário Vital
Design Online WebHosting
Do Host WebHosting
Design Online Templates Cheap Web Templates

server: vital.do-host.com
-----------------------------------------------------------------------
mvital is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 5th, 2003, 2:52 PM   #4 (permalink)
Marketing Maven
Surpass Staff
 
Kayla's Avatar
 
Joined in May 2003
Lives in Orlando
24,749 posts
Gave thanks: 946
Thanked 806 times
mvital, feel free to post the script in our tutorials board and we will find a proper home for it.
We are developing http://tutorials.surpasshelp.com and will have many different sections.
Thanks for any contributions
:surmunity: Surmunity
__________________
Follow Surpass on Twitter and Facebook
Check out the Surpass Blog



Kayla is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 5th, 2003, 3:23 PM   #5 (permalink)
the one who was
Super #1
 
patrickb's Avatar
 
Joined in Jul 2003
Lives in Memphis
1,967 posts
Gave thanks: 0
Thanked 3 times
To limit access to one file. Make a .htaccess file using the password directory feature of Cpanel. Then with file manager, navigate to that folder and edit the .htaccess file.

Find the line in that file that says require valid-user and change it to:
Code:
<Files "filename.html">
require valid-user
</Files>
replace filename.html with whatever file you want to limit. Just make sure that the "require valid-user" is between the <files...> and </files> line and you should be ok.

Also, if you want to limit access to a certain type of file, the first line would read...
Code:
<Files ~ "*\.html">
Hope that helps
__________________
Patrick

Warnings: The program(s) might crash unexpectedly or behave otherwise strangely. (But of course, so do many commercial programs on Windows.) --www.gimp.org
patrickb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 5th, 2003, 4:18 PM   #6 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2003
3 posts
Gave thanks: 0
Thanked 0 times
thanks for all your help.......
im about to go and try a few of your suggestions, i'll report back with an update very soon

Many thanks
Russ
Archer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 5th, 2003, 7:05 PM   #7 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2003
3 posts
Gave thanks: 0
Thanked 0 times
i stiil cant figure it out.....im not the technical....i need a solution that enables me to add multiple usernames & Passwords
anymore help would be appreciated :pleasehelp:

many thanks

Archer


:surmunity:
Archer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 5th, 2003, 8:47 PM   #8 (permalink)
the one who was
Super #1
 
patrickb's Avatar
 
Joined in Jul 2003
Lives in Memphis
1,967 posts
Gave thanks: 0
Thanked 3 times
You should be able to add as many usernames and passwords as you want under the Cpanel part...
__________________
Patrick

Warnings: The program(s) might crash unexpectedly or behave otherwise strangely. (But of course, so do many commercial programs on Windows.) --www.gimp.org
patrickb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 6th, 2003, 1:16 PM   #9 (permalink)
Surpass Fan
Seasoned Poster
 
mvital's Avatar
 
Joined in Sep 2003
Lives in LISBON - Portugal
Hosted on VITAL
47 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
Just give me a day i will post complete solution PHP / Mysql with permissions , etc ......

Quote:
....i need a solution that enables me to add multiple usernames & Passwords
anymore help would be appreciated&nbsp;
i hope this help everybody. :thumbsup:
__________________
-----------------------------------------------------------------------
Mário Vital
Design Online WebHosting
Do Host WebHosting
Design Online Templates Cheap Web Templates

server: vital.do-host.com
-----------------------------------------------------------------------
mvital is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On