By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,760 Members | 955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,760 IT Pros & Developers. It's quick & easy.

restrict file access to only one particular user who enters correct password in web

P: 58
Hi all,
I want to restrict tomcatserver files to particularly one client that who enters username and password correctly anywhere in web(specifically in another system).But nobody without username and password cannot access the those files.

For example,I have avi files in tomcatserver.If any client enters username and password correctly only can access those avi files and others cannot able to access those files even by using the(http://xxx.xxx.x.x/dir/filename.avi ).

-Raju
Nov 23 '06 #1
Share this Question
Share on Google+
8 Replies


sashi
Expert 100+
P: 1,754
Hi all,
I want to restrict tomcatserver files to particularly one client that who enters username and password correctly anywhere in web(specifically in another system).But nobody without username and password cannot access the those files.

For example,I have avi files in tomcatserver.If any client enters username and password correctly only can access those avi files and others cannot able to access those files even by using the(http://xxx.xxx.x.x/dir/filename.avi ).

-Raju
Hi Raju,

All you need is little knoweledge on .htaccess & .htpasswd usage, do a little research for further reading & understanding. Good luck & Take care.
Nov 23 '06 #2

P: 58
Hi Raju,

All you need is little knoweledge on .htaccess & .htpasswd usage, do a little research for further reading & understanding. Good luck & Take care.


Hi sashi,
Could u tell me the process or Send me on example please.Its very urgent .Ur help will be appreciated.
Thank u.
Nov 24 '06 #3

sicarie
Expert Mod 2.5K+
P: 4,677
Hi sashi,
Could u tell me the process or Send me on example please.Its very urgent .Ur help will be appreciated.
Thank u.
Google is your friend ;)

http://www.google.com/search?hl=en&q...=Google+Search

http://www.google.com/search?hl=en&l...wd&btnG=Search

Both of those returned tutorials or examples on the first few hits.
Nov 24 '06 #4

P: 58
Google is your friend ;)

http://www.google.com/search?hl=en&q...=Google+Search

http://www.google.com/search?hl=en&l...wd&btnG=Search

Both of those returned tutorials or examples on the first few hits.
Hai,

i had gone through the web site below .. Really i didn't get any idea on besides of my project.
Let me explain my problem.
In many web site when we login for checking our mails and bla-bla.. after that if i copy that URL in my system and logout.If i want to open my mail by that URL it doesn't accept it.
It said simple expire of your mail and relogin ..
This type of security i need..

I want this in java or jsp

Thankyou for your reply..
-raju
Nov 29 '06 #5

P: 58
I am still waiting........
Nov 30 '06 #6

sicarie
Expert Mod 2.5K+
P: 4,677
I am still waiting........
If you didn't want to set up SSL or anything on the server, it sounds like what you may be wanting is a cookie.

Does this look like stuff that would be helpful to you?

http://www.google.com/search?hl=en&q...=Google+Search
Nov 30 '06 #7

sashi
Expert 100+
P: 1,754
Hai,

i had gone through the web site below .. Really i didn't get any idea on besides of my project.
Let me explain my problem.
In many web site when we login for checking our mails and bla-bla.. after that if i copy that URL in my system and logout.If i want to open my mail by that URL it doesn't accept it.
It said simple expire of your mail and relogin ..
This type of security i need..

I want this in java or jsp

Thankyou for your reply..
-raju
Hi there,

Kindly refer to below attached link, hope it helps. Good luck & Take care.

JSP Tutorial
Nov 30 '06 #8

100+
P: 268
Yes Good guide
Dec 13 '06 #9

Post your reply

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