Support » Plugin: Clef Two-Factor Authentication » Logout hook ERROR: 400

  • Resolved goddess_dix


    I am new to Clef.

    We’re unable to use the Clef application to log out of our WP sites, getting the “:Logout hook ERROR: 400 Client Error: Bad Request for url” error.

    As I was searching for resolution, I found this info. We do indeed have CloudFlare set up, but there isn’t any information on how to fix this. Well, it said to try changing the logout hook, but didn’t say how you change that. I can open a support ticket with CloudFlare, but I have no idea what to request from them. Same issue with Siteground hosting. Can you help?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi;

    It looks like you’ll need to whitelist the IP Addresses that Clef uses in CloudFlare. There’s a list of their IPs here:

    In order to do this, in CloudFlare click on the Firewall tab, scroll down to IP Firewall, paste in those IP addresses (one by one), selecting the whitelist option and clicking the green “Add” button.

    Let me know how it goes.

    Junade Ali

    Community Manager, CloudFlare.

    Plugin Contributor inthylight


    @goddess_dix thanks for the feedback. I’ve updated that place in the guide to clarify where to make the logout hook change.

    I’ll need more info on your setup to guide you to a resolution. If you are still getting the error, can you send me a note at with the URLs in question, an explanation of how you are set up with CloudFlare (e.g., are you on the free tier, pro account; are you full-page-caching; are you using the WAF; etc.?), and whether you are running any additional security plugins.

    Ordinarily, if you’re using CloudFlare’s free tier, unless you are inadvertently full-page-caching your login script, you should’t need to whitelist Clef’s servers.

    @icyapril — thanks for the help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Logout hook ERROR: 400’ is closed to new replies.