I have already asked a question about IP Authentication here: TastyPie Authentication from the same server
However, I need something more! An IP address could be very e
may be you could achieve this by using Same-origin policy
refer http://en.wikipedia.org/wiki/Same_origin_policy