FAQ
•
Search
•
User Groups
•
Forum Admins
•
Smilies List
•
Statistics
•
Rules
•
Login
•
Register
H
ome
FAQs
L
inks
N
ews
Online Tools
phpBB
Scripts
T
utorials
A
bout us
C
ontact us
Contribute
Credits
Link to us
anyone can edit this HTACCESS Code ?
Forum Index
»
Web Servers
Author
Message
Lion4H
Junior WebHelper
Joined: 18 Jul 2004
Posts: 1
Posted: Sun Jul 18, 2004 7:26 am (20 years, 2 months ago)
i need to protect one file with user name and password , and i found and use this code :
Code:
<FilesMatch "admin.php">
AuthName "please user name and password ?"
AuthType Basic
AuthUserFile /home/user/.htpasswds/pass
require valid-user
</FilesMatch>
and it's work good , but the problem that every file named admin.php in the site become need user name and password
anyone know how i can protect just one file ???
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
Posted: Sun Jul 18, 2004 7:58 am (20 years, 2 months ago)
I'm not sure about this, but try replacing "FilesMatch" with "Files" (at the beginning and end of the code you posted).
________________________________
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
Forum Index
»
Web Servers
Jump to:
Select a Forum
» 4WebHelp
Announcements
Our Site: Feedback & Questions
» General
Chit Chat
Freedom2Surf
Advertisements
» Support
General
Website Reviews
Client-Side Coding
Server-Side Coding
Databases
Web Servers
Hosting & Domain Names
Graphics & Flash
You
cannot
post new topics in this forum.
You
cannot
reply to topics in this forum.
You
cannot
edit your posts in this forum.
You
cannot
delete your posts in this forum.
You
cannot
vote in polls in this forum.
Page generation time: 0.117936 seconds :: 13 queries executed :: All Times are GMT
Powered by
phpBB
2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme