• I want to close off my wp-admin and wp-login when it’s not day where i live. I can see that a lot of hack attempts is made when i’m not awake.

    I want to be able to login from other IP’s than my own range.

    How can i add the file clause on this:

    RewriteEngine On
    RewriteCond "%{TIME_HOUR}" ">=20" [OR]
    RewriteCond "%{TIME_HOUR}" "<07"
    RewriteRule "^/fridge"     "-" [F]

    I have tried just adding it like when restricting access to wp-admin and wp-login in general and only allowing specific IP’s or a host, but that doesn’t work. And i haven’t been able to find anywhere where this is combined; The timeframe and the login files.

    All the best
    Carsten

    • This topic was modified 4 years, 4 months ago by boblebad.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If you have a good password and two factor authentication set up, you don’t have to worry about this

    Thread Starter boblebad

    (@boblebad)

    Hello @sterndata

    I now the logic to that 🙂

    But i also think, Why not put the fence a little further out, so they never get close enough 😉

    My thinking is also that it costs less on the server sorting them via .htaccess then letting them try to beat the door down.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘.htaccess wp-login timeframe’ is closed to new replies.