Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Browser History by HTTP-REFERER

843838Aug 3 2006 — edited Aug 3 2006
In my Struts Web application
i need to restict the user accessing pages from Browser History.
When i access any page from Browser History i get
http-referer=null

So,
I am checking this by below code on Server side .
if(request.getHeader("REFERER")==null){

throw new Exception("Invalid operation");
}

Is this Correct way of handling ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 31 2006
Added on Aug 3 2006
1 comment
185 views