Domain Capture

Hi gurus,

is it possible in a servlet to capture the domain from which the request is arriving to ?

I need some method to avoid to call a servlet from unauthorized domains. I've searched in the forums, but no answer has never been given to this topic.

Is there someone can help me ?

Thanks in advance.

[341 byte] By [gluckino] at [2007-9-26 4:29:45]
# 1
Hi,have a look at ServletRequest class and its methods getRemoteAddr() and getRemoteHost().Best regards,Martin
edosoft at 2007-6-29 17:41:28 > top of Java-index,Archived Forums,Java Programming...