473,385 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

prevent unauthorized user to get in this directory

254 100+
i have /members directory, and a form.html

i have a .htaccess file to prevent unauthorized ppl to get in.

.htaccess file
group.file
password file
All in directory /members

but everytime i access the http:://hostname/members/form.html, it wiill success and why no pop-up the box and ask for password?

i have this .htaccess file:
Expand|Select|Wrap|Line Numbers
  1. AuthType Basic
  2. AuthName "Password Required"
  3. AuthUserFile password
  4. AuthGroupFile group.file
  5. Require Group authors
  6.  
and my password file created using htpasswd utility from apache.
one user named user1, password is one.

the group file i created by using textpad and then save as group.file format
Expand|Select|Wrap|Line Numbers
  1. authors: user1 user2
  2.  
What is wrong then?
Please help..
thanks
from NIck
Jan 10 '07 #1
3 1477
AricC
1,892 Expert 1GB
I've never messed around with .htaccess, but here is a pretty good tutorial that may help. Also, this is probably a typo but:
Expand|Select|Wrap|Line Numbers
  1. http:://hostname/members/form.html
Should be:
Expand|Select|Wrap|Line Numbers
  1. http://hostname/members/form.html
Jan 10 '07 #2
nickyeng
254 100+
I've never messed around with .htaccess, but here is a pretty good tutorial that may help. Also, this is probably a typo but:
Expand|Select|Wrap|Line Numbers
  1. http:://hostname/members/form.html
Should be:
Expand|Select|Wrap|Line Numbers
  1. http://hostname/members/form.html
thanks for corrected me for that.
the server i run is decius account named something like this:
Expand|Select|Wrap|Line Numbers
  1. /export/home/student/w0050853/xxx/html/
  2. # which is equilavent to the following adress call :
  3. # http://decius.xxx.xxx:44000/
  4.  
the address i request is
Expand|Select|Wrap|Line Numbers
  1. http://decius.xxx.xxx:44000/ass2/members/form.html
  2.  
the .htaccess file contain:
Expand|Select|Wrap|Line Numbers
  1. AuthType Basic
  2. AuthName "Password Required"
  3. AuthUserFile /export/home/student/w0050853/xxx/html/ass2/members/password
  4. Require valid-user
  5.  
Is it something wrong with my AuthUserFile?
because i can't make sure my path is correct, but i try every directory path already and no help.
Jan 10 '07 #3
nickyeng
254 100+
my path to password is
Expand|Select|Wrap|Line Numbers
  1. /home/student/w0050853/xxx/html/ass2/members/password
  2.  
why it still couldn't pop up the authentication box..???

oh my god, i'm headache!!!
Jan 10 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Tom | last post by:
My site requires users to log in. Each php page ensures the user has been authentiated and will redirect to the login page if need be. However the site also has a directory of PDF files that...
1
by: Newbie | last post by:
I have set up an ASP script (with some help from microsoft.public.inetserver.asp.general!) that grabs the windows username of the user and puts it into an Access database. It is setup on IIS5 as a...
2
by: Jayakumar | last post by:
Hi, I am trying to convert a word document to pdf file from java for this, I am using a asp file to convert doc file to pdf. I got it working when I put the url which has file name as the query...
2
by: ad | last post by:
I have a WebService in localhost, and the set in the web.config is <add key="WebReference.Service" value="http://localhost/HealthService/Service.asmx"/> and the code to refer the WebService is...
0
by: David Davis | last post by:
I am setting up some collaboration software called eProject for a client. eProject is a web based asp application. During setup, the instructions called for registering a service called...
0
by: muzafferhusain | last post by:
Hi, Please help me out in one problem with ASP.NET page. The scenario is something like that, my page contains one data grid and that grid contains around 5000 records (no paging is there)....
0
by: xievvv | last post by:
I have a C# application that I'm developing that I want to keep unauthorized users (ones that don't have admin priveleges) from terminating. How would I go about doing this? I don't want them to be...
3
by: Phil | last post by:
Jerry posed some good ideas, a while back, on website a security issue that comes up often. Gary Jones was asking how to keep users from directly accessing php pages, out of sequence. Jerry...
1
by: HMS1 | last post by:
Hi, When I try to access an SQL Server 2005 database using ASP pages, it works fine on one PC when the ASP pages are on the local machine and the database on the server. However, when the ASP...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.