IntelliJ Java IDE
The moose likes Servlets and the fly likes Urgent!!!!:Authenticating the web page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Urgent!!!!:Authenticating the web page" Watch "Urgent!!!!:Authenticating the web page" New topic
Author

Urgent!!!!:Authenticating the web page

Giri Prasad
Ranch Hand

Joined: Mar 08, 2001
Posts: 56
Hi all
I have an URL (say http://mycompany.com/download.exe)
I want only authenticated users get this URL(This is actually an exe the user is trying to download)
If I do application level authentication and redirect to the URL, then the user can see the URL and use it to
download bypassing the authentication.
Is these a way I can send the exe to user with out let the user see the actual URL
Note: This is urgent Please respond
Thanks in advance
paul sun
Greenhorn

Joined: Dec 22, 2000
Posts: 28
Use a servlet does the authentication. If the user is authenticated, then use dispatcher to forward to http://mycompany.com/download.exe. The user will only see the servlet URL.
Or setup <security-constraint> in web.xml to protect URL. Even if the unauthenticated user knows the URL, he still cannot access the URL.

That's what I think.
 
 
subject: Urgent!!!!:Authenticating the web page
 
Threads others viewed
urgent..
URGENT !!!!
Urgent....
Argent!!!!!!!!:Authenticating Web page hit
Urgent !
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture