Welcome! Log In Create A New Profile

Advanced

exception in location

Posted by translatorgreek 
exception in location
May 19, 2018 09:46AM
I use this to deny access to wp-login.php

location ~ /wp-login.php$ { deny all; }

However, I want to add an exception and allow it only if it contains "itsec-hb-token", I.e.

wp-login.php?itsec-hb-token=wplogin

where wplogin can be any username

https://www.translatum.gr
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 107
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready