|
|
#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 |
|
|
|
|
#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. |
|
|
|
|
#3 (permalink) |
|
Surpass Fan
Seasoned Poster
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 ----------------------------------------------------------------------- |
|
|
|
|
#4 (permalink) |
|
Marketing Maven
Surpass Staff
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
__________________
|
|
|
|
|
#5 (permalink) |
|
the one who was
Super #1
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> Also, if you want to limit access to a certain type of file, the first line would read... Code:
<Files ~ "*\.html">
__________________
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 |
|
|
|
|
#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: |
|
|
|
|
#8 (permalink) |
|
the one who was
Super #1
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 |
|
|
|
|
#9 (permalink) | |
|
Surpass Fan
Seasoned Poster
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:
__________________
----------------------------------------------------------------------- Mário Vital Design Online WebHosting Do Host WebHosting Design Online Templates Cheap Web Templates server: vital.do-host.com ----------------------------------------------------------------------- |
|
|
|