Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9221141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:30:46+00:00 2026-06-18T03:30:46+00:00

I would like to block IP address’s from being able to create accounts from

  • 0

I would like to block IP address’s from being able to create accounts from certain geographic areas, in short I think it is actually more prudent to make a list of the specific geographies where IP address’s are acceptable. The website only services local persons and they are the only ones that will be granted access to the site on a user by user basis.

So is there a way of only accepting IP’s from a geographic region while sending the ones outside of the specified region to a trash bin or something of that sort?

We are using Dolphin to run the website and it is to time consuming to ban the IP addresses that come in everyday. I have read through and have seen many posts describing a service called MaxMind, but we would like to implement something of our own.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T03:30:47+00:00Added an answer on June 18, 2026 at 3:30 am

    Assuming you’re using php, if you can install the GeoIP package, it would be very easy to do it.

    Just call the following function to get back the country code of the client.

    $country_code = geoip_country_code_by_name($ip_address);
    

    If you prefer to obtain geo infos through a web service (it will costs 20$ for 200.000 lookups), look at the web api:

    MaxMind Web API

    PHP Example

    Here’s a list of possible country codes: Country Codes

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to create a child process in node, and block in a
I'm looking to create something like in this image. Each block would have an
i would like to have a block on my drupal site(latest version) that displays
I would like to implement an application for block a mobile number for receiving
I would like to use the MFMailComposeViewController mailComposeDelegate property with completion block syntax, but
I would like to test some exception handling logic in the empty catch block
I would like to know if it is possible for block elements, floated in
I'm working on a block module and would like to perform ajax operations on
I would like to extract a specific type of information from web pages in
I would like to understand the programmatic way of finding out(logging) IP address &

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.