Title: AffLoc — Affiliate Link Localization
Author: AffLoc
Published: <strong>30. März 2026</strong>
Last modified: 30. März 2026

---

Plugins suchen

![](https://ps.w.org/affloc/assets/banner-772x250.png?rev=3494521)

![](https://ps.w.org/affloc/assets/icon-256x256.png?rev=3494521)

# AffLoc — Affiliate Link Localization

 Von [AffLoc](https://profiles.wordpress.org/affloc/)

[Herunterladen](https://downloads.wordpress.org/plugin/affloc.0.2.0.zip)

 * [Details](https://de.wordpress.org/plugins/affloc/#description)
 * [Rezensionen](https://de.wordpress.org/plugins/affloc/#reviews)
 *  [Installation](https://de.wordpress.org/plugins/affloc/#installation)
 * [Entwicklung](https://de.wordpress.org/plugins/affloc/#developers)

 [Support](https://wordpress.org/support/plugin/affloc/)

## Beschreibung

AffLoc is a lightweight, cache-friendly WordPress plugin designed to help you maximize
your affiliate revenue globally. It automatically detects your visitor’s country
via IP and swaps out your affiliate links to match their regional store (e.g., Amazon
US vs Amazon UK), ensuring you never lose a commission due to a „Not Available in
Your Country“ error.

#### Features

 * **Automatic Geolocation:** Detects visitor country securely and accurately.
 * **Country-Specific Links:** Assign different URLs for the same offer based on
   the user’s country code.
 * **Cache-Friendly:** Uses a hybrid JavaScript approach so it works perfectly with
   caching plugins (WP Rocket, W3 Total Cache, etc.).
 * **Global Fallback:** Define a default link for countries without a specific mapping.
 * **Easy Shortcodes:** Simply use `[affloc_link slug="your-offer"]` and let the
   plugin handle the rest.

### External Services

This plugin relies on the following external services to function:
 1. **ipapi.co**–
Used to detect the visitor’s country securely over HTTPS by resolving their IP address.
Their privacy policy is available at [https://ipapi.co/privacy/](https://ipapi.co/privacy/).
No personal data other than the user’s IP address and proxy headers is transmitted.
2. **flagcdn.com** – Used to deliver fast and reliable SVG/PNG country flag icons
inside the WordPress Admin Dashboard.

## Screenshots

[⌊The AffLoc admin page featuring the Add New Mapping form (Offer Slug, Country 
search, Affiliate text and URL fields) alongside the sidebar with White-label Shortcode(
Pro), Shortcode Helper, and Import / Export Mappings tools.⌉⌊The AffLoc admin page
featuring the Add New Mapping form (Offer Slug, Country search, Affiliate text and
URL fields) alongside the sidebar with White-label Shortcode (Pro), Shortcode Helper,
and Import / Export Mappings tools.⌉[

The **AffLoc admin page** featuring the **Add New Mapping** form (Offer Slug, Country
search, Affiliate text and URL fields) alongside the sidebar with **White-label 
Shortcode (Pro)**, **Shortcode Helper**, and **Import / Export Mappings** tools.

[⌊The Existing Mappings table — all mappings grouped by slug/project, showing country
flags, destination URLs, ready-to-copy shortcodes with a "Copy Shortcode" button,
creation date, and Edit/Delete row actions.⌉⌊The Existing Mappings table — all mappings
grouped by slug/project, showing country flags, destination URLs, ready-to-copy 
shortcodes with a "Copy Shortcode" button, creation date, and Edit/Delete row actions
.⌉[

The **Existing Mappings** table — all mappings grouped by slug/project, showing 
country flags, destination URLs, ready-to-copy shortcodes with a „Copy Shortcode“
button, creation date, and Edit/Delete row actions.

[⌊Inserting the shortcode into a page using the WordPress block editor (Gutenberg)—
add a standard Shortcode block and paste [affloc_link slug="your-slug" text="Buy
Now"].⌉⌊Inserting the shortcode into a page using the WordPress block editor (Gutenberg)—
add a standard Shortcode block and paste [affloc_link slug="your-slug" text="Buy
Now"].⌉[

Inserting the shortcode into a page using the WordPress block editor (Gutenberg)—
add a standard **Shortcode** block and paste `[affloc_link slug="your-slug" text
="Buy Now"]`.

[⌊The rendered result on the front end — a geo-localised "Buy Now" affiliate link
automatically swapped to the correct regional URL based on the visitor's country.⌉⌊
The rendered result on the front end — a geo-localised "Buy Now" affiliate link 
automatically swapped to the correct regional URL based on the visitor's country
.⌉[

The rendered result on the front end — a geo-localised **„Buy Now“** affiliate link
automatically swapped to the correct regional URL based on the visitor’s country.

## Installation

 1. Upload the plugin files to the `/wp-content/plugins/affloc` directory, or install
    the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‚Plugins‘ screen in WordPress.
 3. Navigate to **AffLoc** in your WordPress admin menu.
 4. Add your first mapping (e.g., `slug: amazon`, `country: US`, `url: https://amazon.
    com/...`).
 5. Use the shortcode `[affloc_link slug="amazon" text="Buy Now"]` in your posts or
    pages.

## FAQ

### Does it work with caching plugins?

Yes! The substitution happens on the client side (in the browser), meaning your 
pages remain fully cacheable.

### Which IP geolocation service is used?

We use the free ipapi.co service with a secure HTTPS connection. The plugin also
caches the location in the user’s browser to minimize API calls and speed up link
swapping.

## Rezensionen

Zu diesem Plugin liegen noch keine Rezensionen vor.

## Mitwirkende und Entwickler

„AffLoc — Affiliate Link Localization“ ist Open-Source-Software. Folgende Menschen
haben an diesem Plugin mitgewirkt:

Mitwirkende

 *   [ AffLoc ](https://profiles.wordpress.org/affloc/)

[Übersetze „AffLoc — Affiliate Link Localization“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/affloc)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/affloc/), sieh
dir das [SVN-Repository](https://plugins.svn.wordpress.org/affloc/) an oder abonniere
das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/affloc/) per 
[RSS](https://plugins.trac.wordpress.org/log/affloc/?limit=100&mode=stop_on_copy&format=rss).

## Änderungsprotokoll

#### 0.2.0

 * Features: Added maximum mapping limit and Affiliate Text shortcode support.
 * Refactoring: Conformed strictly to WordPress Database APIs for SQL queries.

#### 0.1.5

 * Enhancements: Added copy-to-clipboard functionality for shortcodes.
 * Enhancements: Admin UI improvements including country flags, grouping, searching,
   date sorting, and row actions.
 * Security: Switched to secure HTTPS endpoints for IP geolocation.
 * Security: Added comprehensive IP validation including support for Cloudflare/
   Proxies.
 * Performance: Frontend scripts now only load on pages containing the shortcode.

#### 0.1.0

 * Initial Beta release.

## Meta

 *  Version **0.2.0**
 *  Zuletzt aktualisiert **vor 3 Monaten**
 *  Aktive Installationen **weniger als 10**
 *  WordPress-Version ** 6.0 oder höher **
 *  Getestet bis **6.9.4**
 *  Sprache
 * [English (US)](https://wordpress.org/plugins/affloc/)
 * Schlagwörter
 * [affiliate](https://de.wordpress.org/plugins/tags/affiliate/)[geotargeting](https://de.wordpress.org/plugins/tags/geotargeting/)
   [links](https://de.wordpress.org/plugins/tags/links/)[localization](https://de.wordpress.org/plugins/tags/localization/)
   [redirects](https://de.wordpress.org/plugins/tags/redirects/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/affloc/advanced/)

## Bewertungen

Es wurden noch keine Rezensionen eingereicht.

[Your review](https://wordpress.org/support/plugin/affloc/reviews/#new-post)

[Alle Rezensionen anzeigen](https://wordpress.org/support/plugin/affloc/reviews/)

## Mitwirkende

 *   [ AffLoc ](https://profiles.wordpress.org/affloc/)

## Support

Möchtest du etwas mitteilen? Brauchst du Unterstützung?

 [Support-Forum anzeigen](https://wordpress.org/support/plugin/affloc/)