The MU forums have moved to WordPress.org

Password protecting wp-signup.php (8 posts)

  1. alaskanbob
    Member
    Posted 16 years ago #

    Not sure where this should go, but I just wanted to post a solution for those irritating automated blog bots. http://www.phpsecurepages.com/ you can see how I'm using it at http://allalaskans.com/wp-signup.php

    Comments and suggestions are appreciated.

  2. Merras
    Member
    Posted 16 years ago #

    Really nice solution, I'll try it within a few seconds.

  3. Merras
    Member
    Posted 16 years ago #

    alaskanbob: really nice indeed, but how can I write an introduction to this login interface, like your lines:

    "Please enter Alaskans for "Login" and Only for "Password""

    ?

    Which file should be modificated, and how?

  4. alaskanbob
    Member
    Posted 16 years ago #

    It's the it's the interface.php file that you place your welcome message.

    Find the table just a few lines below the </head> tag.


    <TABLE WIDTH="100%" HEIGHT="100%" CELLPADDING="0" CELLSPACING="0"><TR><TD ALIGN="center" VALIGN="middle">
    
    AllAlaskans.Com is a blogging community for Alaskans by Alaskans</br>
    Please enter Alaskans for "Login" and Only for "Password"</br>
    Note: These are case sensitive.  Enter them exactly as shown above and press Enter.</br></br>
    
    	<TABLE <?PHP echo $theTable; ?> CELLPADDING="0" CELLSPACING="0" 

  5. Merras
    Member
    Posted 16 years ago #

    It's working! Thanks a million, alaskanbob, I owe you a lot of beer. ;-)

  6. alaskanbob
    Member
    Posted 16 years ago #

    Glad to help. It's good to be on the giving end of things here for a change. I'm usually on the receiving end here.

    Next I'll work on getting the password protected page to use the site theme so it doesn't look so out of place.

    Bob

    PS. Since implementation I haven't had a single splog sign up.

  7. Merras
    Member
    Posted 16 years ago #

    I haven't had splogs, too. I wrote an article about your nice idea to the Hungarian wordpress community. :)

    The idea is great, I'm using other CMS', not just WP / WPMU - this is a perfect solution to any portals, forums, etc.

    Thanks. :)

  8. bluffworld
    Member
    Posted 16 years ago #

    FYI, if anyone is having troubles with this software working, it could be because you are using php V5 on your server. Here is a cut and paste of the solution I found to make it work.
    ---------------snip----------------
    > yeah, I had the same problem. FINALLY,
    > I figured out the problem. The
    > variables in php > 4.1 changed. Mostly,
    > it's things like $HTTP_GET_VARS changed
    > to $_GET and so on. See this page for
    > details:
    > http://us3.php.net/reserved.variables
    >
    > Then, grep for HTTP_ in all the php
    > files, and change the ones that you need
    > to... it worked for me!
    The variable names you must change are:

    $HTTP_SERVER_VARS ==> $_SERVER
    $HTTP_ENV_VARS ==> $_ENV
    $HTTP_GET_VARS ==> $_GET
    $HTTP_POST_VARS ==> $_POST
    $HTTP_SESSION_VARS ==> $_SESSION
    ---------------snip---------------------
    More detail is at http://freshmeat.net/projects/phpSecurePages/

    Once I made these changes it works like a charm.

About this Topic

  • Started 16 years ago by alaskanbob
  • Latest reply from bluffworld