This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Argent!!!!!!!!:Authenticating Web page hit  RSS feed

 
Giri Prasad
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I have an URL (say https://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
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you using jsp's, servlets? It's possible with these to get the login parameters without returning anything to the ouput. If login succeeds, you set the out to content type application/executable, read in the exe as a byte[] and write it to the output of your servlet. If login fails, set the response to text/html and send the failed login response.
[This message has been edited by Carl Trusiak (edited March 08, 2001).]
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using the Apache webserver, then you can most likely make use of the ".htaccess" mechanism for protecting directories or files. Other web servers have similar mechanisms. Check out the documentation for your web server.
 
Giri Prasad
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for responding late guys.
Thanks for your help
Carl how do I know the size of the file? and is there any code sample you can help me with
Thanks once again
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!