rails and vpn

Hi,

I have a page on my rails website that should be accessible only via a vpn connection between my server and another one. Is it possible to check on controller this ?

thanks

Hi,

I'd assume that the vpn has a specific IP address? I'd just check for that address in the request and if it's not from that address, send it to an error/instruction page.

Simon

Why not bind the server only to the VPNs specific address?

This way you don’t need to change source code every time something changes in the VPN.