Securing wp-login.php with query string/var/ parameter
-
Hi,
I try to add a small code that secures wp-login.php by adding a parameter to the url e.g: mydomain.com/wp-login.php?myparam=1234
the result I want is that if the login url wont have “?myparam=1234” then user can’t login.
this is the code I added, but it dosn’t work:
<?php
$key= $_GET[‘myparam’];
if($key != “1234”)
{ exit(); }
.. the rest of wp-login.php…any idea?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Securing wp-login.php with query string/var/ parameter’ is closed to new replies.