Website country auto-detection and redirect

  • Durum: Closed
  • Ödül: $60
  • Alınan Girdiler: 3
  • Kazanan Girdiler: kelinciku

Yarışma Özeti

Hi,
I am creating a website for a not-for-profit organization that currently operates in Canada, USA, and the UK. The existing website requires the user to choose their location from a drop-down: the four choices are: Canada, USA, UK and Global. I would like to eliminate this step using PHP. Upon entering the URL of the website, I would like the user's country to be automatically detected using IP address. They would then be redirected to the home page of their country.

I would like to do this in the simplest way possible. The existing website is: [url removed, login to view] if you'd like to see the current setup.

Tavsiye Edilen Beceriler

İşveren Geribildirimi

“Replies promptly”

Profil Görüntüsü FishHookGraphics, Canada.

Bu yarışmadan başlıca girdiler

Daha Fazla Girdi Görüntüle

Genel Açıklama Panosu

  • gerardsmith
    gerardsmith
    • 3 yıl önce

    Hello,
    We have the solution you need in php to get the information of the country (and other information) to the IP, and redirect to the web home of their country.

    • 3 yıl önce
  • FishHookGraphics
    Yarışma Sahibi
    • 3 yıl önce

    Thank-you for all of your replies thus far. I am new to Freelancer.com as of yesterday. I've had this dilemma with getting this part of the website done for a while now, and thought a contest would be the appropriate method. I will review these replies and consider your suggestions. I'm not sure how the project differs in this instance...and insight would be greatly appreciated.

    • 3 yıl önce
  • gsplashed
    gsplashed
    • 3 yıl önce

    my sulotion is based on browser meta title witch sends browser languages and list it by priority

    • 3 yıl önce
  • gsplashed
    gsplashed
    • 3 yıl önce

    I used a much more simple sulotion - doesnt based on ip and doesnt take much resources as resolving witch country this ip belongs to.

    • 3 yıl önce
  • Eswar87
    Eswar87
    • 3 yıl önce

    This shouldn't be a contest but should be a project actually.

    • 3 yıl önce
  • Eswar87
    Eswar87
    • 3 yıl önce

    Hi,
    I have done this multiple times. I have a PHP file which gets the IP using php internal functions and based on the database available will determine whether it belongs to Canada or USA or UK or Global if it doesn't belong to any of those three. If you want it, please let me know, I can upload it as an entry.

    • 3 yıl önce
  • filalizakariae
    filalizakariae
    • 3 yıl önce

    in the entry I'll create page1.php that contain a php script that detect country and redirect to canada.php, usa.php, uk.php or global.php, sounds good ?

    • 3 yıl önce
  • pivn
    pivn
    • 3 yıl önce

    I think you should open a normal project, not a contest.

    • 3 yıl önce

Daha fazla yorum göster

Yarışmalara nasıl başlanır

  • Yarışmanızı ilan edin

    Yarışmanızı İlan Edin Hızlı ve kolay

  • Tonlarca girdi alın

    Tonlarca Girdi Alın Bütün dünyadan

  • En iyi girdiyi seçin

    En iyi girdiyi seçin Dosyaları indirin - Kolay!

Şimdi bir Yarışma İlan Edin ya da Bugün Bize Katılın!