I have a situation that requires me to call a certain controller when a specific request is sent from a certain URL.
Let’s say my application is running on: http://www.app.com/listencontroller
When a request is sent to this URL, and the request is sent from http://www.itsme.com, I want to be able to process that request, otherwise I don’t want to do anything with it.
How can this be done in a pretty way, i.e. no hard coded URLs in my controller?
In the end this link did the job:
http://grails-plugins.github.com/grails-spring-security-core/docs/manual/guide/18%20IP%20Address%20Restrictions.html