This week's book giveaways are in the Functional Programming and Linux forums.
We're giving away four copies each of Reactive Design Patterns and Learn Linux in a Month of Lunches and have the authors on-line!
See this thread and this one for details.
Win a copy of Reactive Design Patterns this week in the Functional Programming forum
or Learn Linux in a Month of Lunches in the Linux forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring Rest prevent access except for specific url

 
Mark Case
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I need to prevent all access to a java spring rest service, except for request made from specific url.  antMatchers don't seem to address this type of situation.

I would appreciate it anyone could point me into the right direction.

Thanks
 
Ankit Garg
Sheriff
Posts: 9587
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say "from specific url" what does that mean? Generally you check request based on IP address they are coming from. A URL cannot request another URL technically. You can use referer header but I wouldn't recommend that as it can be easily set to anything...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!