Support » Plugin: Password Protected » Password URL Pass-through for whole website

  • I have installed both Password URL Pass-through and Password Protected plugin. With Password Protected I was able to password protect whole website, but I need to pass that password using URL.
    Is there any plugin or method on how to implement this website level URL passthrough

Viewing 3 replies - 1 through 3 (of 3 total)
  • This topic interests me as well! Answer please?

    Also interested in this, thanks!

    OK so for people interested, this is how you make it happen:

    in password-protected.php

    Find this line:

    if ( isset( $_GET['password-protected'] ) ) {
    			$is_active = true;
    		}

    (around line 130)

    ADD THIS:

    if ( isset( $_GET['pwd'] ) && $_GET['pwd'] == 'yourpassword' ) {
    			$this->set_auth_cookie();
    			return false;
    		}

    then you have

    return $is_active;

    It will write a cookie so you can keep on browsing the whole website without being kicked out. Cookie expires after 14 days.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Password URL Pass-through for whole website’ is closed to new replies.