homepage Welcome to WebmasterWorld Guest from 54.166.255.168
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

    
Geoip & blocking countries (trying to figure out my next movements)
geoip, blocking countries, maxmind
Michel Samuel

5+ Year Member



 
Msg#: 3331471 posted 6:13 am on May 5, 2007 (gmt 0)

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]

 

perl_diver

5+ Year Member



 
Msg#: 3331471 posted 6:27 pm on May 5, 2007 (gmt 0)

Does your question have something to do with Perl?

jatar_k

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



 
Msg#: 3331471 posted 7:58 pm on May 5, 2007 (gmt 0)

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.

Michel Samuel

5+ Year Member



 
Msg#: 3331471 posted 5:53 am on May 6, 2007 (gmt 0)

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?

jatar_k

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



 
Msg#: 3331471 posted 1:15 pm on May 6, 2007 (gmt 0)

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.

Michel Samuel

5+ Year Member



 
Msg#: 3331471 posted 1:56 pm on May 6, 2007 (gmt 0)

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.

jatar_k

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



 
Msg#: 3331471 posted 2:00 pm on May 6, 2007 (gmt 0)

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

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

bsterz

10+ Year Member



 
Msg#: 3331471 posted 2:05 pm on May 6, 2007 (gmt 0)

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.

Michel Samuel

5+ Year Member



 
Msg#: 3331471 posted 7:31 pm on May 6, 2007 (gmt 0)

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)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved