WordPress.org

Ready to get started?Download WordPress

Forums

iThemes Security (formerly Better WP Security)
WP Function to BAN ip? (6 posts)

  1. hwk-fr
    Member
    Posted 1 year ago #

    Hi!

    I want to BAN IP using a function in functions.php. Is that possible ?

    Regards,

    http://wordpress.org/extend/plugins/better-wp-security/

  2. hwk-fr
    Member
    Posted 1 year ago #

    up I really need this...

  3. aljuk
    Member
    Posted 1 year ago #

  4. hwk-fr
    Member
    Posted 1 year ago #

    Thanks for the share :)

    But I already know that. In my case I want to interact with WP Better Security to add a IP to the BAN list -> in .htaccess

    regards,

  5. Handoko
    Member
    Posted 1 year ago #

    Goto menu > Security > Ban Users > turn on the Enable Banned Users and put the IPs on Ban Hosts.

    Before you put the IP there you should check it perhaps using whatismyipaddress.com/ip-lookup, because some of them might be web crawlers not bad bots.

  6. hwk-fr
    Member
    Posted 1 year ago #

    You didn't understood me. I know how to BAN IP Hosts from the Admin Panel.

    What I want to do is to interact with this panel in my functions.php to automatically ban a IP when an action is triggered...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags