Search Results :

×

How to Install and Configure Magento IP Restriction?

The miniOrange IP Restriction extension for Magento helps protect your store by blocking unwanted visitors and reducing malicious traffic based on IP addresses and geographic location.
It provides a simple yet powerful way to restrict access for suspicious users, bots, and high-risk traffic before they can attempt login attacks, scrape content, or overwhelm your storefront or admin panel.

  • Purchase the miniOrange Magento IP Restriction extension from Magento Marketplace (Adobe Commerce Marketplace).
  • Go to My profile -> My Purchases
  • Please ensure you are using correct access keys (My Profile - Access Keys)
  • Paste the access keys in your auth.json file inside your project
  • Use the below command to add the extension to your project.
    "composer require {module_name}:{version}"
  • You can see the module name and list of versions in the selector below the extension module name.
  • Run the following commands on command prompt to enable the extension.
    php bin/magento setup:upgrade

Before configuring IP Restriction, ensure you have SSH/CLaccess to your Magento server. If you accidentally lock yourself out of the admin panel, you can use the following CLi commands to manage Admin IP Restriction.

Cl commands to manage Admin IP Restriction and avoid self-lockout

1. bin/magento admin:ip-restriction - -disable

Temporarily disables IP Restriction if you are locked out of the admin panel.

2. bin/magento admin:ip-restriction - -enable

Re-enables IP Restriction after resolving the issue.

2. bin/magento admin:ip-restriction - -enable

Checks the current status of AdminIP Restriction.

  • Under the IP Restriction tab, make sure the scope is selected.
  • Turn on the Enable IP Blacklisting toggle to block the specified IP addresses.
  • Enter the IP addresses you want to block in the Blacklist IPs field. Separate multiple IP addresses with a semicolon (;).
  • In the Free plan, you can add up to 5 IP addresses.
Magento 2 IP Restriction | IP Blacklist panel Magento IP Restriction | IP addresses Blacklist Settings
  • In the Country Restriction panel, locate Enable Country Restriction.Turn the toggle ON to activate Country Restriction for the selected scope.
Magento IP Restriction|Country Restriction panel
  • In GeoIP2 Database Configuration, enter your MaxMind GeoIP2 License Key. If you don’t have a license key, sign up for a MaxMind account to generate one.
Magento IP Restriction | GeoIP2 License Key
  • Click the Download button under Manual Download to manually download the latest GeoIP2 Country database.
  • Enable automatic weekly database updates to have Magento update the GeoIP2 database automatically each week. This is recommended to ensure accurate country detection.
Magento IP Restriction | Manual Download
  • Under Country Denylist, select the countries you want to block from the dropdown. Users accessing the site from the selected countries will be denied access.
Magento IP Restriction | Country Denylist

 Thank you for your response. We will get back to you soon.

Something went wrong. Please submit your query again

We'll Reach Out to You at the Earliest!


ADFS_sso ×
Hello there!

Need Help? We are right here!

support