Welcome to WebmasterWorld Guest from 23.22.17.192

Forum Moderators: coopster & jatar k & phranque

Message Too Old, No Replies

Geoip & blocking countries (trying to figure out my next movements)

geoip, blocking countries, maxmind

   
6:13 am on May 5, 2007 (gmt 0)

5+ Year Member



I'm reasonably certain that I have the database set up as per instructions in maxmind.

Now I have done searches on how to impliment a system of blocking or redirecting traffic from certain nations based on geoip.

The problem is without really knowing what my next chemin is... I really do not know what it is I am googlé. And I don't think I would recognize it if I lookeded at it.

So if someone can budge me the correct passage that would be mostly greatly appreciated.

[edited by: jatar_k at 7:55 pm (utc) on May 5, 2007]
[edit reason] no urls thanks [/edit]

6:27 pm on May 5, 2007 (gmt 0)

5+ Year Member



Does your question have something to do with Perl?
7:58 pm on May 5, 2007 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



were you wanting to do this in perl?

there are php code examples on the page you originally linked to.

the basic idea is to get the ip of the visitor and find the country from the database. You then decide whether that is a country you want and act accordingly.

5:53 am on May 6, 2007 (gmt 0)

5+ Year Member



I politely apologize and respectful ask that you have toleration for me. I have not the certainty on how these trucs fonction.

Therefore,

I was referred to this section from another thread.
I haved the assumption that it must be writen in perl.
Is there an plus easy method to complet this task?

1:15 pm on May 6, 2007 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



do you have a preference in what language you write it in. It can be done in php using the examples they have provided for you.
1:56 pm on May 6, 2007 (gmt 0)

5+ Year Member



My preference would be in french. But I am certain this is not what you were asking. I have no prefence to the program language. I just want it to focntion.

I sitting with a book concering perl language and it is evdidentment too advance for me. I am going to do this but I probably will make many dumb questions.

2:00 pm on May 6, 2007 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



try this search [google.ca], looks like some good references

I would go with php as there seem to be more examples there

2:05 pm on May 6, 2007 (gmt 0)

10+ Year Member



My recommendation is that you have someone code this for you and ask them to comment it heavily - every line if possible. Use the project as a tutorial.

You can either:
Ask someone you know to code it
Go To RAC or some other freelance site and post it as a project.

Short of that - PM me the URL that was removed so I know which method you are using with Maxmind. I use the hosted API solution so I have some experience with this, and we can help you as much as possible through this board.

I remember when I was first learning perl some of the most simple things tripped me up for days - and I know on a busy website that is not preferable.

Good luck.

7:31 pm on May 6, 2007 (gmt 0)

5+ Year Member



I think you are very correct.
The water is very much above my head.

Sometimes it is easier to learn something by looking at it after it is finished. I am certain this is the case for me now. I am very much impressed with the magick that you can do with these machine. (I'm a photographer not a programer)