• Resolved purcell2delius

    (@purcell2delius)


    Can I import or copy and paste a CSV file or other form of IP address blacklist into a plugin blacklist settinng?

    Regards!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author ip2location

    (@ip2location)

    As long as these IP is in 1 IP per line, you can paste it into the blacklist without issue.

    Thread Starter purcell2delius

    (@purcell2delius)

    Thank you for your answer.
    I created a text file with one IP address per line and copied and pasted it into the blacklist. Unfortunately, they were not accepted by the blacklist. After I pasted them, the pasted strings were combined into one line and highlighted in red.
    I tried a combination of CR, CR+LF, and LF as line break codes, but none of them were accepted.
    What kind of separator should I use?

    Best regards!

    Plugin Author ip2location

    (@ip2location)

    Sorry, the input is controlled by Javascript, you cannot paste it in by batch. You will need to paste them one by one.

    Thread Starter purcell2delius

    (@purcell2delius)

    Thank you very much. I understood.
    But I have many blacklists and it is very difficult for me to enter them one by one.
    If you could tell me the location of the file or database where the blacklist data is written to, I would be able to write the blacklist directly.
    Do you think it would be very dangerous to try it?

    Regards!

    Plugin Author ip2location

    (@ip2location)

    Hi,

    The values are stored under wp_options table with option_name ip2location_country_blocker_backend_ip_blacklist and ip2location_country_blocker_frontend_ip_blacklist. The IPs are separated with a semicolon.

    Please make sure not to block yourself by inserting your own IP address there.

    Thread Starter purcell2delius

    (@purcell2delius)

    Great!!

    I have successfully written the blacklist directly into the database.

    Thank you so much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘IP Blacklist Definition’ is closed to new replies.