FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


How to password-protect content?





Nyizsa
Please read before telling me to use Search!
I know how to password-protect a web page. My question is: how can I protect files I refer to?
For example: I have a page which requires login. (www.example.com/members.html) There is a link to /stuff/list.pdf. It is clear that only those who are logged in will see the link, and will be able to click on it.
But what if someone types the URL: www.example.com/members/stuff/list.pdf? I assume he will be able to read the document without any authentication.
Suggestions?
dandelion
I don't sure, but you can try.

Create the .htaccess file in your /stuff/ directory or add the following lines into existing one.
Code:
<Limit GET POST PUT DELETE CONNECT OPTIONS PATCH PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Require valid-user
</Limit>
Nyizsa
I tried it - but doesn't work. Crying or Very sad
I am using Linux, Apache server, and Firefox. (But tried also with Epiphany, Mozilla and Galeon.)
Do I need anything to set in order to use .htaccess files on the server?
Or does anybody have any other ideas?
Related topics
htaccess Password Protection
Passwords?
Password Protecting Directories?
MySQL problrem?
Password Protect my site
Development Garage
Password protected photo album?
How do i password protect a web page using html
Password protect pages with phpbb
How to password protect windows directories?
Making a password protect page in dreamweaver
Password Protect a Folder
Apple MobileMe
How to password protect a zip file
Reply to topic    Frihost Forum Index -> Webmaster and Internet -> Design Tips

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.