Forum Discussion

adamp_1459's avatar
adamp_1459
Icon for Nimbostratus rankNimbostratus
Aug 05, 2012

checking request from a specific country

hey i want to create an irule that states

 

that if a user is from a specific country then add to the request header "country=1"

 

if not add "country=0"

 

 

i suppose ill need to use the geolocation and inset header function but im a newbie at this

 

any help would be appreciated

 

3 Replies

  • Hi Adam,

     

     

    I don't think the license for the GeoIP database allows for this unless you're just using the header information to log:

     

     

     

    https://devcentral.f5.com/wiki/iRules.whereis.ashx

     

     

    It is a direct violation of the EULA to use F5’s data to embed geolocation information or codes representing geolocation information into the requests such that another application or server could make the decision on what to do with that data. Customers wishing to use geolocation data on their webservers or in their applications to make decisions in those products can purchase geolocation data from Quova.

     

     

     

    Aaron
  • Aaron, why would F5 give you all the tools to do this and then make a statement like that in the EULA? I would guess that many are already using this functionality...
  • I wasn't a party to the license negotiations between F5 and Quova so I can't say definitively. I'd guess the difference in cost between licensing their GeoIP data for use on BIG-IP itself versus exporting the data was high. To get an official response and/or a quote for exporting the GeoIP data, you could contact F5 Support.

     

     

    Aaron