• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to encrypt url ?

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a login button in "login.jsp". Whenever user click on login button then button will invoke "login_servlet" using "post" method.It is working properly. But if we mover cursor over the button we can able to see the "url" in status bar.Is there any way to encrypt url which appearing on status bar while we move cursor over the button!

Advance thanks!
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Venki R" please check your private messages for an important administrative matter. You can see them by clicking the My Private Messages link above.
 
Amit Ghorpade
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

But if we mover cursor over the button we can able to see the "url" in status bar.


If you are seeing the URL in the status bar, then its not a button.
And anyways why do you want to encrypt the URL? Others can still see the target of the URL.
 
Venki Ananth
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi amit,
Thanks!
Check this same site! move cursor over the "post new topic" button. we can see the url on status bar. Is there any way to encrypt/hide that.
 
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Venki:
Hi amit,
Thanks!
Check this same site! move cursor over the "post new topic" button. we can see the url on status bar. Is there any way to encrypt/hide that.



As Amit said it's not a button but an image! And why do you want to encrypt that?
 
Venki Ananth
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Manuel !

Happy to get quick reply!!!

<form action="http://localhost:8080/project/message.jsp" method="post"><input type="submit" value="login"></form>

Please check this code on jsp ! We can able see the url!!! Here i just used absolute path we can do the same for relative path also! I dont want to let an endusers to know my servlet/jsp names.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unfortunately, your screen name still isn't OK. If you actually read the policy, you'll see that a first and a last name is required. Please fix that before your next post. Accounts without valid screen names are generally closed.

I dont want to let an endusers to know my servlet/jsp names.


There's nothing you can do to prevent the user from knowing where the form is submitted to. Anyone can look at the source of the page to determine where it's going to, even if the status bar doesn't show it.
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which webbrowser are you using? This doesn't occur here in FF. Please don't say that you're using IE.

Originally posted by Venki:
I dont want to let an endusers to know my servlet/jsp names.

How about just viewing the page source?

This concern makes no sense.
 
Venki Ananth
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bauke Scholtz ,

Sorry m using IE !

How about just viewing the page source?



They can only view jsp/html page source.I used many servelts with "some names". But clients dont want me to show that names on browser ( Sudden changes happened). Changing servlets name is too tough now!!! Project is in deployment stage now! So any other way???
 
Amit Ghorpade
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Venki Ananth:

I used many servelts with "some names". But clients dont want me to show that names on browser ( Sudden changes happened). Changing servlets name is too tough now!!! Project is in deployment stage now! So any other way???



You can write a controller servlet, users will only see the mapped servlet name in the browser and you can send server side redirects without the user actually knowing which page is being rendered.

Hope this helps
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You dont have to write one if you dont want to. Look at the Frontman toolkit by some local guy.

Bill
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic