Amazon links from inside the editor
Of everything on this site since 2014, EasyAzon is the one most people came for. It went up in June 2014 as a free core plus a Pro add-on; the two merged into one plugin at 5.0, and the download on this page is 5.1.2, the version we maintain now. If you still have an old EasyAzon Pro active, deactivate it. Everything it did is in here.
The button above the editor
Click the EasyAzon button, search Amazon by keyword or ASIN, pick a product and choose a link type. Text link, image link (a product photo that is itself the affiliate link), a product information block with title, thumbnail, price and buy button, a call-to-action buy button, or a link to the search results page for that term. The link lands in your post as a shortcode, so you never open an Amazon tab to build it.
Link options
- Open in a new window and nofollow, site-wide defaults on the settings page or per link
- Link cloaking behind your own domain, with redirects shaped like
/product/ASIN/US/tag/ - Add to cart links, which lengthen Amazon’s cookie window when the visitor adds the item
- Product pop-ups on mouse hover
- Multiple tracking IDs, so you can see which placements convert
Link localization
EasyAzon supports every Amazon Associates locale: United States, Canada, China, France, Germany, India, Italy, Japan, Spain and the United Kingdom. Enter a tracking ID per store and map a product to its equivalents on the Localization page, and a visitor from the UK is sent to amazon.co.uk with your UK tag. The visitor’s country comes from, in order, the easyazon_visitor_country_code filter, Cloudflare’s CF-IPCountry header when your site sits behind Cloudflare, or a GeoIP2 country database you place at wp-content/uploads/easyazon/geoip.mmdb. With none of those, links use the default locale. We removed the bundled MaxMind database in 5.1.2: it was 3 MB, stale, and under MaxMind’s own licence terms.
Why 5.1.2 exists
The plugin was closed on wordpress.org in June 2024 over a reflected cross-site scripting hole in the cloaking redirect: when a cloaked link could not be resolved, the locale and identifier were printed unescaped in the error message. 5.1.2 escapes both, returns a 404 and sanitises the query vars. We also found that the editor AJAX endpoints for product search and shortcode preview had no nonce and no capability check, so any subscriber could run searches with your API credentials; both now require a nonce and edit_posts, and the preview only renders EasyAzon shortcodes. A PHP 8 fatal in two bundled Amazon SDK classes is fixed, and the five-star review nag, the Pro upsells, the “free course” page and every link back to the former vendor are gone. Tested on WordPress 7.1 with PHP 8.3; needs PHP 7.4 or newer.
You need API keys
Product search, images, prices and info blocks all go through the Amazon Product Advertising API 5.0, so you need an approved Associates account with API access, and you enter the Access Key, Secret Key and tracking IDs on the settings page. Amazon’s current rule is that API access requires recent qualifying sales; that is their rule, not ours, and a brand new site will run into it. Plain text links still work without the API, because 5.1.2 falls back to the canonical amazon.com/dp/ASIN URL with your tag when no product data is available. We could not test live search results, image or info block output, or GeoIP lookups without real credentials, so those paths are verified by code review and by Amazon’s own error coming back through the authorised endpoint.






