URL redirection based on geolocation

Need some assistance for creating an iRule based on traffic originating from specific country.

OS Ver info :BIG-IP 11.5.0 5.0.251

requirement: If traffic is coming from UK and US froward to "https://abc.com else forward to /admin/login/login.action which is my application URI

some examples here : https://devcentral.f5.com/wiki/iRules.whereis.ashx

simple example are for DNS but you can change it to your traffic type by changing the event to when CLIENT_CONNECTED or HTTP_REQUEST.