Hi everyone!

Alright, I've seen other people post this, but I can't really find the answer I'm looking for.

I know how to show content based on specific IP Country. However, how would I go about displaying a block based on IP Range?

I'm new to this kind of development, I mostly deal with front-end and I'm relatively new to drupal.

I figure I need my application to grab the user's IP address, check if it falls between a certain range, then it needs to display a block if it falls within said range, else display none. I would have a general idea if this was possible with raw javascript, but it looks like I should be using PHP for this. I have a basic understanding of this.

Is there a module that can handle all this for me or would this be have to be coded out manually?

Any help is MUCH, much appreciated.

Comments

DavidVII’s picture

Shameless bump.

gaurav_m’s picture

Hi

You may check
http://drupal.org/project/ip2cc

or the related modules on the page as well