.htaccess wp-login timeframe
-
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
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘.htaccess wp-login timeframe’ is closed to new replies.