Jump to content


Access restriction question

access restriction ip filter check incomming http requests header

  • Please log in to reply
1 reply to this topic

#1 John Smith

John Smith

    Member

  • Members
  • PipPip
  • 25 posts

Posted 02 November 2012 - 01:41 PM

Hi all.

I'm complete Java development beginner and I'm wondering if your PaaS provides any solutions for hosted application access restriction?
The thing is that I would like to provide an access to my test application deployed to Jelastic only from my work and homeplace IP.
do you guys have any ideas on how can I implement it in Jelastic?
My application is running on Tomcat 7 (in case it matters) + Nginx.

Thanks in advance.

#2 Dmitro Olanovsky

Dmitro Olanovsky

    Dmitro

  • Administrators
  • 193 posts

Posted 02 November 2012 - 05:05 PM

Hi John,

Quote

how can I implement it in Jelastic?

There is an easy way how to restrict access to your application.

You should create a filter in your application that will check incomming http requests for x-forwarded-for header.
This special header contains IP addres of users which send http requests to your application.

So you can set needed addresses to the filter and all other IPs will be restricted.

I have attached an application which shows all headers that came to your environment. (seemply deploy it to Tomcat)

Information provided AS-IS with no warranty of any kind.

Best regards,
Dmitro






Also tagged with access, restriction, ip, filter, check incomming http requests, header

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Topic Led By