[Rails] Re: Devise - Authenticate based on IP

2011-05-04 Thread pepe
Just a question... I am assuming the IP addresses will always be static? On May 3, 4:09 am, jack koh li...@ruby-forum.com wrote: I want restrict only certain IPs can to access my App. After authenticate IPs, username and password just allows user to access. -- Posted

[Rails] Re: Devise - Authenticate based on IP

2011-05-03 Thread jack koh
I want restrict only certain IPs can to access my App. After authenticate IPs, username and password just allows user to access. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this

Re: [Rails] Re: Devise - Authenticate based on IP

2011-05-03 Thread Michael Pavling
On 3 May 2011 09:09, jack koh li...@ruby-forum.com wrote: I want restrict only certain IPs can to access my App. After authenticate IPs, username and password just allows user to access. That's a very different problem then. The easiest solution may be to use iptables (or similar) on the

Re: [Rails] Re: Devise - Authenticate based on IP

2011-05-03 Thread Peter Hickman
However this assumes that the site is hosted in some place where the firewall is easy to access. This is not always the case and even if it is you really do not want the sysadmin or developer to be having to drop everything just to make some small change to a firewall config (and as any sysadmin

Re: [Rails] Re: Devise - Authenticate based on IP

2011-05-03 Thread Michael Pavling
On 3 May 2011 09:53, Peter Hickman peterhickman...@googlemail.com wrote: However this assumes that the site is hosted in some place where the firewall is easy to access. What assumes this? Without you quoting anything, we're into the realms of having to guess what bit you're replying to... and

[Rails] Re: Devise - Authenticate based on IP

2011-05-03 Thread jack kw
Thank for replying. Michael and Peter Sorry, I've little confusing just now.. due to rushing with my project. Actually I would like to set certain user like admin which is can access from outside [public IPs]. others users only can access within LAN. -- Posted via http://www.ruby-forum.com/.

Re: [Rails] Re: Devise - Authenticate based on IP

2011-05-03 Thread Peter Hickman
Great way to annoy users Thank you for providing correct credentials, but get lost anyway... :-/ It would probably be nicer to deny on IP address first, that way you wouldn't expose your login forms on systems whose IP addresses you don't want logging in for whatever reason. Here you are

Re: [Rails] Re: Devise - Authenticate based on IP

2011-05-03 Thread Michael Pavling
On 3 May 2011 10:54, Peter Hickman peterhickman...@googlemail.com wrote: Great way to annoy users Thank you for providing correct credentials, but get lost anyway... :-/ It would probably be nicer to deny on IP address first, that way you wouldn't expose your login forms on systems whose IP

Re: [Rails] Re: Devise - Authenticate based on IP

2011-05-03 Thread Peter De Berdt
On 03 May 2011, at 12:05, Michael Pavling wrote: On 3 May 2011 10:54, Peter Hickman peterhickman...@googlemail.com wrote: Great way to annoy users Thank you for providing correct credentials, but get lost anyway... :-/ It would probably be nicer to deny on IP address first, that way you