Title: IP2Location Redirection
Author: IP2Location
Published: <strong>20 de octubre de 2014</strong>
Last modified: 18 de mayo de 2026

---

Buscar plugins

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

![](https://ps.w.org/ip2location-redirection/assets/icon-128x128.png?rev=2121920)

# IP2Location Redirection

 Por [IP2Location](https://profiles.wordpress.org/ip2location/)

[Descargar](https://downloads.wordpress.org/plugin/ip2location-redirection.1.39.0.zip)

 * [Detalles](https://es.wordpress.org/plugins/ip2location-redirection/#description)
 * [Valoraciones](https://es.wordpress.org/plugins/ip2location-redirection/#reviews)
 *  [Instalación](https://es.wordpress.org/plugins/ip2location-redirection/#installation)
 * [Desarrollo](https://es.wordpress.org/plugins/ip2location-redirection/#developers)

 [Soporte](https://wordpress.org/support/plugin/ip2location-redirection/)

## Descripción

_Este plugin No funciona si hay activo algún plugin de caché._

Como su propio nombre indica, IP2Location Redirection es uno de los plugins más 
recomendados para gestionar la tarea de redirección en una web o una URL personalizada
predefinida en función del país y la región geolocalizada por la dirección IP.

Es un plugin de redirección muy simple pero potente que te ayuda a gestionar todas
las redirecciones de tu web incluyendo la redirección 301 y 302. Con la capacidad
de detectar la información de geolocalización de la dirección IP, puedes redirigir
a los visitantes a otra ubicación con facilidad incluso si no estás familiarizado
con los archivos .htaccess de Apache.

Características principales

 * Redirige a los visitantes a una página del blog basándote en su país y región
 * Redirige a los visitantes a una URL predefinida basándote en su país y región
 * Te permite configurar varias reglas de redirección según tu necesidad
 * Admite redirecciones 301 y 302
 * Compatible con IPv4 y IPv6
 * Reduce enlaces rotos y antiguos y ayuda a tu web con el posicionamiento SEO del
   sitio

Este plugin de redirección es compatible tanto con los datos BIN de geolocalización
IP2Location como con el servicio web para la búsqueda de geolocalización de direcciones
IP. Si estás utilizando los datos BIN, puedes actualizar los datos BIN cada mes 
utilizando el asistente en la página de ajustes para obtener un resultado preciso.
También puedes descargar y actualizar manualmente el archivo de datos BIN utilizando
los siguientes enlaces:

Descarga del archivo BIN: [Base de datos comercial de IP2Location](https://ip2location.com)
| [Base de datos LITE de IP2Location](https://lite.ip2location.com)

To use the IP2Location IP geolocation web service (REST API) for geolocation, you’ll
need to register an account at [IP2Location.io IP Geolocation API](https://www.ip2location.io).
A free plan is available.

#### Más Información

Visítanos en [https://www.ip2location.com](https://www.ip2location.com)

## Capturas

 * [[
 * Redirigir a los visitantes de California y Nueva York a https://google.com

## Instalación

### Usando el escritorio de WordPress

 1.  Selecciona **Plugins > Añadir nuevo**.
 2.  Busca por «IP2Location Redirection».
 3.  Haz clic en _Instalar ahora_ para instalar el plugin.
 4.  Click on _Activate_ button to activate the plugin.
 5.  Register a download account https://lite.ip2location.com (Free) or https://www.
     ip2location.com (Commercial).
 6.  Get the download token from your account page.
 7.  Go to «Redirection» form WordPress sidebar.
 8.  Go through the setup wizard step by step.
 9.  Ahora puedes empezar a usar IP2Location Redirection para bloquear visitantes.

### Instalación manual

 1. Sube el plugin al directorio `/wp-content/plugins/ip2location-redirection`.
 2. Activa el plugin desde el menú ‘Plugins’ de WordPress.
 3. Descarga la base de datos de IP2Location desde https://lite.ip2location.com (gratis)
    o https://www.ip2location.com (comercial).
 4. Descomprime el archivo .BIN y súbelo a `wp-content/plugins/ip2location-redirection`.
 5. Si has comprado el servicio web de IP2Location en https://www.ip2location.com/web-
    service, inserta tu clave API en la pestaña de ajustes.
 6. Ahora puedes empezar a usar IP2Location Redirection para redirigir visitantes.

Ten en cuenta que este plugin requiere como mínimo **la versión 5.4 de PHP**.

 * Si estás usando la base de datos LITE de IP2Location sigue [estas instrucciones](https://blog.ip2location.com/knowledge-base/how-to-add-an-attribution-in-wordpress-when-using-ip2location-lite-database/)
   para añadir la atribución en tu web.

## FAQ

### ¿Tengo que descargar el archivo BIN después de la instalación del plugin?

Sí, descarga el último archivo DB1 BIN para hacer una prueba rápida desde https://
lite.ip2location.com/database/ip-country
 Si necesitas redirigir por región mejor
usa la DB3 que está en https://lite.ip2location.com/database/ip-country-region-city

### ¿Dónde descargo el archivo BIN?

Puedes descargar la edición LITE de geolocalización por IP que es gratis en [https://lite.ip2location.com](https://lite.ip2location.com)
o la edición comercial en [https://www.ip2location.com](http://www.ip2location.com).
Descomprime el archivo .BIN descargado y súbelo a `wp-content/uploads/ip2location`.

### ¿Necesito actualizar el archivo BIN?

Te recomendamos que actualices tu archivo BIN cada mes para que tu plugin funcione
con el último resultado de geolocalización IP. La actualización suele estar lista
la primera semana de cada mes natural.

### ¿Puedo seleccionar varios países o regiones para hacer redirección?

Sí, puedes.

### ¿Funciona este plugin con «plugins de caché» como W3 Total Cache?

No. Por favor, desactiva el «plugin de caché» para que nuestro plugin funcione correctamente.

### ¿Cómo pruebo el plugin?

Puedes usar https://www.locabrowser.com para probar el resultado.

### ¿No has podido encontrar tu respuesta aquí?

Envíanos un correo electrónico a support@ip2location.com

## Reseñas

![](https://secure.gravatar.com/avatar/992a432aeec6bc851e50c1217719724c421c1d60b79f8008858d8da5966443eb?
s=60&d=retro&r=g)

### 󠀁[Doesnt work](https://wordpress.org/support/topic/doesnt-work-3283/)󠁿

 [Krki](https://profiles.wordpress.org/krki/) 6 de marzo de 2026 1 respuesta

It cannot save any rule. I select a country, From: Any page, Destination: custom
url, 301, and when I click «Save changes» it doesn’t show the saved rule. Caches
are turned off, latest wordrpess. Inspector doesn’t show any error.

![](https://secure.gravatar.com/avatar/eccef4e955d9b0c4bb146a678ab48018d5f329cc2909732895a028ae20c23140?
s=60&d=retro&r=g)

### 󠀁[Fácil de usar e útil](https://wordpress.org/support/topic/facil-de-usar-e-util/)󠁿

 [viniciuscostasites](https://profiles.wordpress.org/viniciuscostasites/) 7 de enero
de 2025

Gostei, resolveu o que eu queria

![](https://secure.gravatar.com/avatar/56b7754cd77fd67384190fe4f57ab5f67696450a1906177db0369ae65c7cec35?
s=60&d=retro&r=g)

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-38506/)󠁿

 [esp2013](https://profiles.wordpress.org/esp2013/) 24 de febrero de 2024

I couldn’t be without this plugin – works perfectly to redirect users to a specific
page based on their location. Excellent work – kudos to the developer(s).

![](https://secure.gravatar.com/avatar/bac2ad39dda2b21761ae39d2afb55c7342030ee5c8699782bafd789aa04db9d5?
s=60&d=retro&r=g)

### 󠀁[How To Give user option to stay on go to their Geo Location](https://wordpress.org/support/topic/how-to-give-user-option/)󠁿

 [tyrese2423](https://profiles.wordpress.org/tyrese2423/) 30 de enero de 2023 1 
respuesta

So I Downloaded the plugin but I’ll like to give user option to either stay or go
to their geo location site How Can i Implement it on my website by using this plugin??

![](https://secure.gravatar.com/avatar/0e210ceedc39a87a6d67d7a6b9a30f88ff1515379540f89d4796d83e417a6296?
s=60&d=retro&r=g)

### 󠀁[Alright!](https://wordpress.org/support/topic/alright-13/)󠁿

 [Antares](https://profiles.wordpress.org/antares_chan/) 27 de enero de 2023

Does exactly what it’s supposed to do. Easy and fast installation.

![](https://secure.gravatar.com/avatar/275a2ebdf3b734d27e98f9d6cec79c2508c80c2633bf1443beb12db9e8c4f6bf?
s=60&d=retro&r=g)

### 󠀁[Responsive support](https://wordpress.org/support/topic/responsive-support-55/)󠁿

 [darylaurito](https://profiles.wordpress.org/darylaurito/) 26 de septiembre de 
2022

The support that responded my email SK Kiu was very responsive and it eventually
help to resolve my issue. Thank you.

 [ Leer todas las 43 reseñas ](https://wordpress.org/support/plugin/ip2location-redirection/reviews/)

## Colaboradores y desarrolladores

«IP2Location Redirection» es un software de código abierto. Las siguientes personas
han colaborado con este plugin.

Colaboradores

 *   [ IP2Location ](https://profiles.wordpress.org/ip2location/)

«IP2Location Redirection» está traducido en 5 idiomas. Gracias a [los traductores](https://translate.wordpress.org/projects/wp-plugins/ip2location-redirection/contributors)
por sus contribuciones.

[Traduce «IP2Location Redirection» a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/ip2location-redirection)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/ip2location-redirection/),
echa un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/ip2location-redirection/)
o suscríbete al [registro de desarrollo](https://plugins.trac.wordpress.org/log/ip2location-redirection/)
por [RSS](https://plugins.trac.wordpress.org/log/ip2location-redirection/?limit=100&mode=stop_on_copy&format=rss).

## Registro de cambios

 * 1.39.0 Added option to skip AI bots.
 * 1.38.1 Fixed restore function error.
 * 1.38.0 Disabled redirection for WP-CLI.
 * 1.37.0 Updated to the latest version of IP2Location library.
 * 1.36.1 Fixed implicit conversion of mask to int.
 * 1.36.0 Added rule statistics, advance path matching, dialog prompt, and automatically
   BIN database updates.
 * 1.35.1 Fixed «Download IPv4 database only» checkbox was ignore during database
   update.
 * 1.35.0 Added ability to flush cached data.
 * 1.34.3 Restored option to skip bots & crawlers.
 * 1.34.2 Fixed PHP warning when cronjobs are running.
 * 1.34.1 Fixed «Skip Administrator Redirection» feature and added logging.
 * 1.34.0 Required PHP 7.4 and above. Added option to toggle administrator redirection.
 * 1.33.6 Improved security checks.
 * 1.33.5 Tested up to WordPress 6.8.
 * 1.33.4 Fixed XSS vulnerabilities on admin_init function.
 * 1.33.3 Fixed restore function.
 * 1.33.2 Fixed vulnerability in restore.
 * 1.33.1 Improved external calls error handling.
 * 1.33.0 Added cache plugin warning.
 * 1.32.2 Tested up to WordPress 6.7.
 * 1.32.1 Fixed warning message on mobile device.
 * 1.32.0 Added option to append parameter on destination URL.
 * 1.31.1 Minor update.
 * 1.31.0 Added feature to override real IP header.
 * 1.30.1 Tested up to WordPress 6.6.
 * 1.30.0 Added backup/restore feature.
 * 1.29.4 Fixed CIDR matching in IPv6.
 * 1.29.3 Tested up to WordPress 6.5.1.
 * 1.29.2 Fixed CSRF issues.
 * 1.29.1 Fixed database decompress error under Linux environment.
 * 1.29.0 Updated setup wizard to include IP2Location.io Geolocation API service.
 * 1.28.5 Added a private key to protect debug log.
 * 1.28.4 Randomize debug log to protect unwanted access.
 * 1.28.3 Tested up to WordPress 6.4.
 * 1.28.2 Fixed deprecated setcookie error.
 * 1.28.1 Fixed database download issue for some users.
 * 1.28.0 Added IP detection for website behind Securi firewall.
 * 1.27.1 Improved accuracy of IP detection with CloudFlare.
 * 1.27.0 Improved IP detection for reverse proxy and CloudFlare services.
 * 1.26.11 Stop obtain client IP from custom header to prevent IP spoofing.
 * 1.26.10 Updated documentation and UI tweaks.
 * 1.26.9 Added extra validation on first visit cookie.
 * 1.26.8 Tested up to WordPress 6.2
 * 1.26.7 Added source field into API web service.
 * 1.26.6 Updated to use IP2Location.io IP Geolocation API.
 * 1.26.5 Updated «Requires at least» information.
 * 1.26.4 Tested up to WordPress 6.1.
 * 1.26.3 Fixed WPML code not working with home page redirection.
 * 1.26.2 Fixed invalid URL generated during redirection. Fixed origin/destination
   search field missing.
 * 1.26.1 Fixed URL rule not display properly.
 * 1.26.0 Added search function on page/post listing.
 * 1.25.19 Improved home page redirection.
 * 1.25.18 Improved cache clear process and remove debug.log when option is disabled.
 * 1.25.17 Tested up to WordPress 6.0.
 * 1.25.16 Fixed issue values being reset to default on re-activation.
 * 1.25.15 Enhanced checking.
 * 1.25.14 Fixed invalid redirection for some pages.
 * 1.25.13 Added IP detection for GTranslate.
 * 1.25.12 Tested up to WordPress 5.9.
 * 1.25.11 Improved IP detection for IP forwarded by other services.
 * 1.25.10 Added better handler when BIN lookup failed.
 * 1.25.9 Removed non-exist assets.
 * 1.25.8 Removed session dependencies.
 * 1.25.7 Fixed API response.
 * 1.25.6 Prevent redirection in administrator login page.
 * 1.25.5 Fixed administrator detection. Improved infinite redirection handling.
 * 1.25.4 Prevented empty destination from saving that lead to redirection error.
 * 1.25.3 Fixed 404 error. Fixed duplicated language codes in WooCommerce.
 * 1.25.2 Fixed CSS styling issues.
 * 1.25.1 Fixed bugs and improvements.
 * 1.25.0 Fine tuned backends and redirection.
 * 1.24.1 Fixed WPML code warning.
 * 1.24.0 Added WooCommerce and WPML supports.
 * 1.23.14 Fixed issue detecting home page.
 * 1.23.13 Fixed permission issue when updating database from settings.
 * 1.23.12 Fixed error when using IPv6 CIDR in whitelist.
 * 1.23.11 Fixed administrator notice keep showing after dismissed.
 * 1.23.10 Fixed IP range mismatched when using CIDR.
 * 1.23.9 Fixed setup issue for commercial database.
 * 1.23.8 Fixed infinite redirection when using custom URL.
 * 1.23.7 Updated domain validations to support more domain extensions.
 * 1.23.6 Fixed whitespace issue in Ajax calling.
 * 1.23.5 Tested up to WordPress 5.7.
 * 1.23.4 Fixed file permission issues for some users.
 * 1.23.3 Fixed issue download token not updated.
 * 1.23.2 Fixed looping issue when using API service.
 * 1.23.1 Fixed database download issue.
 * 1.23.0 Added setup guide.
 * 1.22.1 Minor bug fixes.
 * 1.22.0 Added scheduled task to flush caches.
 * 1.21.2 Tested up to WordPress 5.6.
 * 1.21.1 Updated IP2Location library to support earlier version of PHP.
 * 1.21.0 Updated file structures to use composer for IP2Location libraries.
 * 1.20.0 Added feature to enable or disable existing rule.
 * 1.19.3 Fixed deactivation issue when conflicting with other plugins.
 * 1.19.2 Tested with WordPress 5.5.
 * 1.19.1 Updated IP2Location library to support older PHP version.
 * 1.19.0 Implemented internal cache and fixed several bugs.
 * 1.18.0 Added whitelist feature.
 * 1.17.4 Cleaned up codes and sanitized user inputs.
 * 1.17.3 Added attribution instructions.
 * 1.17.2 Fixed deactivation issue.
 * 1.17.1 Fixed missing version tag.
 * 1.17.0 Added option to ignore query string.
 * 1.16.4 Tested with WordPress 5.4.
 * 1.16.3 Prevented Ajax based job manager from redirection.
 * 1.16.2 Fixed error message.
 * 1.16.1 Updated plugin description.
 * 1.16.0 Added redirection by region.
 * 1.15.13 Increased timeout in BIN download.
 * 1.15.12 Fixed existing BIN database not updated issue.
 * 1.15.11 Minor fixes.
 * 1.15.10 Added feedback request.
 * 1.15.9 Tested with WordPress 5.3.2.
 * 1.15.8 Updated IP2Location library to 8.1.0.
 * 1.15.7 Fixed a bug when page does not exist.
 * 1.15.6 Fixed issue when customized theme is used.
 * 1.15.5 Fixed issue with multi-site WordPress.
 * 1.15.4 Updated manual upload instructions.
 * 1.15.3 Fixed issue download token not saved.
 * 1.15.2 Fixed BIN database download issue.
 * 1.15.1 Fixed redirection with WooCommerce shopping cart.
 * 1.15.0 Moved database file to WordPress upload directory to prevent existing 
   BIN file from deleted.
    Re-structured debugging log and grouped each visitor 
   into same section. Improved session cache for faster speed and save Web service
   queries.
 * 1.14.4 No longer look up for BIN file when Web service is used.
 * 1.14.3 Updated documentation links.
 * 1.14.2 Tested up to WordPress 5.1.1.
 * 1.14.1 Fixed IP2Location API check credit interface.
 * 1.14.0 Upgraded IP2Location API to v2.
 * 1.13.10 Fixed database file detection in both Windows and Linux environment.
 * 1.13.9 Prevent redirection when IP2Location database is missing or corrupted.
 * 1.13.8 BIN database no longer shipped together to prevent local copy being overwritten.
 * 1.13.7 Added LinkedIn and Pinterest into crawler list.
 * 1.13.6 Tested with WordPress 5.0.1.
 * 1.13.5 Fixed IP detection when server forwarded wrong IP address.
 * 1.13.4 Updated country list based on latest ISO-3166 standards.
 * 1.13.3 Added page not found handler.
 * 1.13.2 Fix bug which prevented rules from being saved.
 * 1.13.1 Fix rule insertion bug.
 * 1.13.0 Multiple countries redirection is now available with single rule.
 * 1.12.0 Domain redirection will now remain the path and query string. Fine tuned
   rule validations.
 * 1.11.2 Minor fixes.
 * 1.11.1 Ignore «www.» when redirect domain.
 * 1.11.0 Added debug log.
 * 1.10.2 Minor bugs fixed.
 * 1.10.1 Fixed notice dismiss issue.
 * 1.10.0 Added domain redirection.
 * 1.9.3 Fixed rule validation bugs.
 * 1.9.2 Fixed bugs.
 * 1.9.1 Minor changes.
 * 1.9.0 IP2Location database update changed to use download token.
 * 1.8.0 Added option to enable redirection for first time only. Custom URL allowed
   in «From» page.
 * 1.7.6 Prevent duplicated cart items during redirection.
 * 1.7.5 Fixed bots detection.
 * 1.7.4 Minor changes.
 * 1.7.3 Fixed checkbox issues in configuration page.
 * 1.7.2 Bug fixes.
 * 1.7.1 Minor update.
 * 1.7.0 Added exclude option to redirect all countries except a specified country.
 * 1.6.0 Added option to stop redirection when bots / crawlers detected. Fixed infinites
   loop bug with some pages.
 * 1.5.0 Refined GUI and performance improvements.
 * 1.4.1 Fixed checkbox issue.
 * 1.4.0 Added home page as redirection source.
 * 1.3.3 Fixed infinite loop when redirect within same domain using URL mode.
 * 1.3.2 Fixed conflicts when multiple IP2Location plugins installed.
 * 1.3.1 Added support for custom GET parameter.
 * 1.3.0 Use IP2Location PHP 8.0.2 library for lookup.
 * 1.2.7 Use latest IP2Location library for lookup.
 * 1.2.6 Fixed close sticky information panel issue.
 * 1.2.5 Redirection has been disabled on administrator.
 * 1.2.4 Fix uninstall function.
 * 1.2.3 Prevent settings lost when deactivate/activate the plugin.
 * 1.2.2 Use latest IP2Location library and updated the setting page.
 * 1.2.1 The redirection source and destination will list out all possible posts&
   pages now.
 * 1.2.0 Multiple country selection added.
 * 1.1.15 Tested with WordPress 4.4.
 * 1.1.14 Ignore redirection in admin page.
 * 1.1.13 Fixed linking issue to database file. Prevent infinite loop if wildcard
   chosen.
 * 1.1.12 Fixed save issues.
 * 1.1.11 Fixed warning message in WordPress 4.3.
 * 1.1.10 Fixed redirection issues. Fixed errors with earlier version of PHP.
 * 1.1.9 Fixed compatible issues with PHP 5.3 or earlier.
 * 1.1.8 Fixed errors with PHP 5.3 or earlier.
 * 1.1.7 Fixed class name issue when upgrade from previous version.
 * 1.1.6 Fixed redirection issue in iOS devices. Use latest IP2Location library.
 * 1.1.5 Remain query string after redirected to external URL.
 * 1.1.4 Fix redirect issue when URL rewrite is using.
 * 1.1.3 Will remain query string in URL after redirection.
 * 1.1.0 Added supports for IP2Location Web Service.
 * 1.0.1 Fixed issue on activation.
 * 1.0.0 First public release.

## Meta

 *  Versión **1.39.0**
 *  Última actualización **hace 1 semana**
 *  Instalaciones activas **8.000+**
 *  Versión de WordPress ** 4.6 o superior **
 *  Probado hasta **6.9.4**
 *  Versión de PHP ** 7.4 o superior **
 *  Idiomas
 * [Chinese (China)](https://cn.wordpress.org/plugins/ip2location-redirection/),
   [Chinese (Taiwan)](https://tw.wordpress.org/plugins/ip2location-redirection/),
   [Dutch](https://nl.wordpress.org/plugins/ip2location-redirection/), [English (US)](https://wordpress.org/plugins/ip2location-redirection/),
   [Korean](https://ko.wordpress.org/plugins/ip2location-redirection/) y [Spanish (Spain)](https://es.wordpress.org/plugins/ip2location-redirection/).
 *  [Traducir a tu idioma](https://translate.wordpress.org/projects/wp-plugins/ip2location-redirection)
 * Etiquetas:
 * [ip2location](https://es.wordpress.org/plugins/tags/ip2location/)[redirection](https://es.wordpress.org/plugins/tags/redirection/)
 *  [Vista avanzada](https://es.wordpress.org/plugins/ip2location-redirection/advanced/)

## Valoraciones

 4.3 de 5 estrellas.

 *  [  33 valoraciones de 5 estrellas     ](https://wordpress.org/support/plugin/ip2location-redirection/reviews/?filter=5)
 *  [  2 valoraciones de 4 estrellas     ](https://wordpress.org/support/plugin/ip2location-redirection/reviews/?filter=4)
 *  [  2 valoraciones de 3 estrellas     ](https://wordpress.org/support/plugin/ip2location-redirection/reviews/?filter=3)
 *  [  0 valoraciones de 2 estrellas     ](https://wordpress.org/support/plugin/ip2location-redirection/reviews/?filter=2)
 *  [  6 valoraciones de 1 estrellas     ](https://wordpress.org/support/plugin/ip2location-redirection/reviews/?filter=1)

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

[Ver todas las valoraciones](https://wordpress.org/support/plugin/ip2location-redirection/reviews/)

## Colaboradores

 *   [ IP2Location ](https://profiles.wordpress.org/ip2location/)

## Soporte

¿Tienes algo que decir? ¿Necesitas ayuda?

 [Ver el foro de soporte](https://wordpress.org/support/plugin/ip2location-redirection/)

## Donar

¿Te gustaría apoyar el progreso de este plugin?

 [ Dona a este plugin ](https://www.ip2location.com)