Write PHP script for redirect to MYSQL database entry based on IP address geolocation

Completado Publicado Nov 23, 2014 Pagado a la entrega
Completado Pagado a la entrega

I need a PHP script that takes the last world of an URL (e.g., "France" in [login to view URL]) and:

- identifies the location of the site visitor based on his IP address.

- looks up the keyword at the end of the URL and reads from a MySQL database the target URL for that keyword and country

- Redirects the visitor to the target URL that has been read from the database.

- If the country in question cannot be found in the database, redirect to the "fall-back" country for that keyword).

The database consists of a simple table "redirects" with three fields:

-keyword

-country

-targetURL

All three fields are text; country names will be the standard Internet country codes (i.e., "fr" for France, "de" for Germany, "uk" for United kingdom, "us" for United States). "--" will be the fall-back country in case a country code is not found.

Example of the table:

keyword country targetURL

gadgets -- [login to view URL]

gadgets fr [login to view URL]

gadgets it http://mygadgets/[login to view URL]

gadgets uk [login to view URL]

gadgets us [login to view URL]

Access to a test site with mySQL can be provided for the testing of the script if necessary. I will test it from at least two different countries.

MySQL PHP Diseño de sitios web

Nº del proyecto: #6773742

Sobre el proyecto

26 propuestas Proyecto remoto Activo Nov 29, 2014

Adjudicado a:

aztechdev

Hello sir, I can write your script with the following features : - Lookup of origin country of request - Lookup of a redirect URL in database based on a keyword in the URL and the visitor's country - Redirect u Más

€100 EUR en 3 días
(9 comentarios)
4.5

26 freelancers están ofertando un promedio de €132 por este trabajo

rajeshsonisl

Hello! With 99% completion rate, 720 successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, not even 4.99 average rating, can be verified on my profile page https://www.freelancer.com/u Más

€315 EUR en 2 días
(940 comentarios)
8.6
toinnisfree

I have read your project details, and I am interested in offering my services. I provide 100% satisfaction guaranteed on all my work. Milestone is required to begin; to be released when the job has been satisfactor Más

€150 EUR en 3 días
(786 comentarios)
8.3
entrepreneur2000

Hello, I am ready to implement a script to redirect user based on IP. Can you please contact me to discuss the requirements of this project in more detail? My background: I am a professional web developer with mo Más

€126 EUR en 3 días
(179 comentarios)
8.3
sprextech

----------------------------------------------------------Please Consider on My BID---------------------------------------------------Dear Sir/Madam, We are already read your project description & fully understand this Más

€100 EUR en 2 días
(321 comentarios)
7.6
CodingExpertz

Hi, I looked your posting and I am very much interested to work with you ...I am an India based software professional providing a range of IT services and solutions that address the technology needs of your company in Más

€105 EUR en 2 días
(126 comentarios)
6.6
avinashjain09

Hello, can you provide access to test site. I have 3+ years of experience in php,mysql,codeigniter,wordpress,yii. I have expertise in database. And also I am a Oracle certified Associate.

€70 EUR en 3 días
(127 comentarios)
6.7
kimit1234

A proposal has not yet been provided

€100 EUR en 3 días
(111 comentarios)
6.0
Jerok

Hello, I'm an experienced web designer and developper. Let me know if I can be of service. Podemos comunicar en castellano caso sea mas confortable.

€100 EUR en 3 días
(39 comentarios)
6.1
optimizmo

Hello, I can create a script with described functionality for you. It will take a keyword from the url, resolve the country by IP, if possible, and redirect the user to the url, fetched from your MySQL DB. If intereste Más

€120 EUR en 2 días
(32 comentarios)
5.9
sashamd

Hi, I would like to apply for this PHP project. Please contact me if you have any questions. Best wishes, Sasha

€80 EUR en 3 días
(29 comentarios)
5.8
dynamiteboy

Hi I am developer PHP / MySQL / CSS / jQuery / HTML 5, 10 years experience, I have already made ip geolocation system, I would be very happy to do this for you, I am available for the nows do.

€200 EUR en 2 días
(58 comentarios)
5.3
bishkot

Hello sir, i can develop this redirect function for you. Please provide me with full specs and details. Waiting for your reply.I am ready to start. Many greetings from Bulgaria.

€111 EUR en 3 días
(3 comentarios)
4.2
mohamedmssouda

Hello Sir I am expert web developer,and I wish you give me this opportunity and I will do the best quality with the lowest price

€88 EUR en 3 días
(24 comentarios)
4.4
magiccupcake

Hello, I am a developer from IL (United States). I have a lot of experience in PHP and can make this script for you fairly quickly. Do you already have the MySQL database or do you need that created? If you need it Más

€75 EUR en 2 días
(12 comentarios)
4.6
faisal0077

Aucune proposition n'a encore été fournie.

€66 EUR en 3 días
(5 comentarios)
3.4
injector17

A proposal has not yet been provided

€100 EUR en 3 días
(6 comentarios)
3.2
Mzherr

Hi : ) I'm worked on 2 Redirect-By-GeoIP project before , so i can do it for you . Just want to notice you , you'll need GeoIP API external connection or upload GeoIP Database to your server - And there is many of t Más

€50 EUR en 5 días
(4 comentarios)
3.4
wildlily981

Hello I can do this I can show you a demo in next 24 hours if you want. .................... Best Regards Bill Lee

€72 EUR en 3 días
(2 comentarios)
2.4
geneprogrammer

Hey, This is a very simple job if it is just as described in project description, We can easily get the IP address of visitor And then using IP we can find Country name Matching country name by code and getting UR Más

€100 EUR en 3 días
(1 comentario)
1.4
rubennavarroc94

I am an expert making PHP scripts for anything. Making this script for you will be fast and powerful. I am bronze medallist from the National Olympiad of Informatics of México which gives you very good reasons to hire Más

€200 EUR en 3 días
(0 comentarios)
0.0