A client with ties to political news interests recently came to us requesting that their website display a different image if a user was visiting their website from a country in the Middle East. We created a simple function by utilizing the popular location and geocoding API provided by HostIP to allow us to easily do this. As internet usage in the MENA region continues to rise and geographic content campaigns provide an almost-guaranteed return on investment, this function will come in handy if MENA users frequent your website, web application, or publication.

isMENA() function:

Example Usage:

Not sure on what to do?

Our development team can answer your questions and help you implement this.

Other Bold Articles

A resource for business owners, marketing departments, developers, and more.