• Resolved suprim

    (@suprim)


    Hello,

    I asked same question couple of months back but there was few issue back with the cidram. I installed the plugin today and I forgot how to block the country from accessing my site. I am using cloudflare and want to block India from my site. Is it posssible with this plugin?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Maikuolan

    (@maikuolan)

    Hi @suprim,

    No problem at all, and yes, this is possible to do. ??

    If you’ve enabled the CIDRAM front-end, the easiest way to block India from your website would be to install and activate the optional India blocklists using the updates page. From the front-end, if you go to the updates page and scroll through the list of components that appear, in that list, you should see these:

    India IPv4 blocklist
    Optional blocklist, which includes GeoLite data created by MaxMind distributed under the Creative Commons Attribution-ShareAlike 4.0 International License.
    Support: BitBucket/macmathan/blocklists
    Used with: signatures->ipv4

    India IPv6 blocklist
    Optional blocklist, which includes GeoLite data created by MaxMind distributed under the Creative Commons Attribution-ShareAlike 4.0 International License.
    Support: BitBucket/macmathan/blocklists
    Used with: signatures->ipv6

    If you install and “activate” those using the options provided on the page, India will be blocked.

    Alternatively, if you haven’t enabled the CIDRAM front-end, and would prefer for it to remain disabled, you can install these components manually.

    To install these components manually, firstly, visit this repository here. A list of downloadable files should appear. Look for “IN_cidram.inc” and “IN_cidram_ipv6.inc”, and download those two files.

    After downloading those two files, upload/copy them into the “vault” directory of your CIDRAM installation.

    Next, you’ll want to “activate” these two files.

    To “activate” them, look for the “ipv4” and “ipv6” configuration directives in your CIDRAM configuration. Include “IN_cidram.inc” in the “ipv4” directive, and “IN_cidram_ipv6.inc” in the “ipv6” directive.

    After saving/updating your CIDRAM configuration, they’ll be “activated”.

    India should now be blocked. ??

    Let me know how it goes, and whether there are problems.

    • This reply was modified 6 years, 7 months ago by Maikuolan. Reason: Fix wrong formatting
    • This reply was modified 6 years, 7 months ago by Maikuolan. Reason: Fix wrong formatting
    • This reply was modified 6 years, 7 months ago by Maikuolan. Reason: Fix wrong formatting
    Plugin Author Maikuolan

    (@maikuolan)

    Marking this issue as resolved for now. If you need more help for this particular issue, or if there are any problems, please reply again to let me know, and I’ll reopen the issue.

    Thread Starter suprim

    (@suprim)

    Hello Maikuolan,

    I have still not figured it out. I want to do this without using plugin. My friend before helped with this but I lost his contact but the way he helped me was I had to login to something loader.php and form there I could install all the files and track the ips blocked. I want to do it that way.

    Thank you

    Plugin Author Maikuolan

    (@maikuolan)

    No problem. ??

    Also, sorry about the delayed reply. Was a little busy yesterday.

    The “loader.php” file (located in the base of your CIDRAM installation) is the file you’ll need to open (from your browser) in order to access the “front-end” (i.e., opening “loader.php” via your browser, and opening the “front-end”, for our purpose here is basically the same thing).

    Firstly though, in order to “enable” the front-end (when first installing CIDRAM, the front-end is disabled for security reasons; i.e., to prevent others from getting into it and potentially causing unwanted problems), you’ll need to open the “config.ini” file (located in the vault directory of your CIDRAM installation) with a plain-text editor (any plain-text editor like Notepad or Notepad++ should suffice, but don’t open it with a rich-text editor like Microsoft Word or such though, because a rich-text editor could corrupt the file; an online editor, if available, should be okay too though).

    Look for:

    disable_frontend=true

    And change it to:

    disable_frontend=false

    After you’ve done that, opening loader.php from your browser should display the CIDRAM front-end login page. ??

    Just use admin/password to log into the front-end for the first time, and change the default username and password to something else after you’ve logged in.

    Kind regards,
    Caleb.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I block Country?’ is closed to new replies.