Re: Tomcat hiding director

2007-04-06 Thread Hassan Schroeder

On 4/4/07, Hoa Doan [EMAIL PROTECTED] wrote:

Is there a way to hid some directory from user access?


Read the servlet spec section on security,  and configure your app's
web.xml appropriately. No other software required :-)

--
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hiding director

2007-04-06 Thread Rashmi Rubdi

Great suggestion.
I should take some time to read the spec too.

On 4/6/07, Hassan Schroeder [EMAIL PROTECTED] wrote:

On 4/4/07, Hoa Doan [EMAIL PROTECTED] wrote:
 Is there a way to hid some directory from user access?

Read the servlet spec section on security,  and configure your app's
web.xml appropriately. No other software required :-)



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hiding director

2007-04-06 Thread Leon Rosenberg

or just move the folder under WEB-INF.


On 4/6/07, Rashmi Rubdi [EMAIL PROTECTED] wrote:

Great suggestion.
I should take some time to read the spec too.

On 4/6/07, Hassan Schroeder [EMAIL PROTECTED] wrote:
 On 4/4/07, Hoa Doan [EMAIL PROTECTED] wrote:
  Is there a way to hid some directory from user access?

 Read the servlet spec section on security,  and configure your app's
 web.xml appropriately. No other software required :-)


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hiding director

2007-04-05 Thread Hoa Doan
I don't want to block people from accessing my site, I just want to block 
access to folder.  And I can't find .htaccess anywhere, is it something you 
install serparetly?

Rashmi Rubdi [EMAIL PROTECTED] wrote: I don't think .htaccess works with 
Tomcat alone -- doesn't it require
Apache as well?

You could write a filter to block all IP addresses.

-Rashmi

On 4/4/07, Martin Gainty  wrote:
 Hi Doan-

 The easist way is to configure .htaccess for the folder and configure access
 according to which referer or what type of page they want
 http://www.javascriptkit.com/howto/htaccess13.shtml

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 
-
8:00? 8:25? 8:40?  Find a flick in no time
 with theYahoo! Search movie showtime shortcut.

Re: Tomcat hiding director

2007-04-05 Thread Martin Gainty

If you're on Windows box write the filter
But then again if you're on a Unix box I would try .htaccess

Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: Hoa Doan [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, April 05, 2007 11:25 AM
Subject: Re: Tomcat hiding director


I don't want to block people from accessing my site, I just want to block 
access to folder.  And I can't find .htaccess anywhere, is it something you 
install serparetly?


Rashmi Rubdi [EMAIL PROTECTED] wrote: I don't think .htaccess works 
with Tomcat alone -- doesn't it require

Apache as well?

You could write a filter to block all IP addresses.

-Rashmi

On 4/4/07, Martin Gainty  wrote:

Hi Doan-

The easist way is to configure .htaccess for the folder and configure 
access

according to which referer or what type of page they want
http://www.javascriptkit.com/howto/htaccess13.shtml


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
8:00? 8:25? 8:40?  Find a flick in no time
with theYahoo! Search movie showtime shortcut. 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hiding director

2007-04-05 Thread Rashmi Rubdi

On 4/5/07, Hoa Doan [EMAIL PROTECTED] wrote:

I don't want to block people from accessing my site, I just want to block 
access to folder.  And I can't find .htaccess anywhere, is it something you 
install serparetly?


This is the official .htaccess tutorial :
http://httpd.apache.org/docs/1.3/howto/htaccess.html , I think that it
requires one to install the Apache Httpd server , and then Tomcat on
top of it - use a connector to connect two.



You could write a filter to block all IP addresses.


You could write a filter only for one folder also or you could write
password authentication code -- I don't know if JAAS could be used in
this case.

-Rashmi

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hiding director

2007-04-04 Thread Martin Gainty

Hi Doan-

The easist way is to configure .htaccess for the folder and configure access 
according to which referer or what type of page they want

http://www.javascriptkit.com/howto/htaccess13.shtml

Martin --
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: Hoa Doan [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Wednesday, April 04, 2007 12:34 PM
Subject: Tomcat hiding director


Is there a way to hid some directory from user access?  Like lets say i 
have a directory name 'hideme' and in it are some files.  What i want to 
do is not allow user from accessing it like 'localhost/hideme/index.html'



-
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta. 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hiding director

2007-04-04 Thread Rashmi Rubdi

I don't think .htaccess works with Tomcat alone -- doesn't it require
Apache as well?

You could write a filter to block all IP addresses.

-Rashmi

On 4/4/07, Martin Gainty [EMAIL PROTECTED] wrote:

Hi Doan-

The easist way is to configure .htaccess for the folder and configure access
according to which referer or what type of page they want
http://www.javascriptkit.com/howto/htaccess13.shtml


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]