File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes referer/ip Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "referer/ip" Watch "referer/ip" New topic
Author

referer/ip

Miran Cvenkel
Ranch Hand

Joined: Nov 23, 2010
Posts: 147
This code returns referer, or ip if there is no referer.
What are the chances that I get wisited by google robot/anything else, and referer comes out as empty string ?
I'm getting empty string into my db.



Searchable nature photo gallery: http://agrozoo.net/jsp/Galery.jsp?l2=en
Miran Cvenkel
Ranch Hand

Joined: Nov 23, 2010
Posts: 147
ahh, forget it, code works ok, was calling another proc.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: referer/ip
 
Similar Threads
getHeader("Referer") not working on Tomcat 4.1.24
How to get client's IP address, Domain using Java
doubt from hanumant book
is there any request info that's present on link click, but not direct access?
getting the url of original page