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:
Other Bold Articles
A resource for business owners, marketing departments, developers, and more.