Welcome to Earthbound.darkbb.com
Please login or Register and Join the free community!
Registering allows access to _Invisible Sections_.

Gate keepers page donkey protection script

View previous topic View next topic Go down

Gate keepers page donkey protection script

Post by Admin on Sat Jun 05, 2010 12:21 am

This is not my own script, I am only adding it here for your usage.

Step 1: Save this image onto your harddrive:
[You must be registered and logged in to see this image.]

Step 2: Copy the below into the <body> tags of the starting page (The page before the donkey protected one).

Code:
<SCRIPT LANGUAGE="javascript">
                <!--- Hide from tired old browsers
                var nifty_little_window = null;
                function gateKeeper() {
                nifty_little_window = window.open('gatekeep.html', 'theKeeper',
                'width=350,height=200,resizable=1');
                }
                // End hiding --->
                </SCRIPT>
<form>
<input type="button" value="Enter Here" onClick="gateKeeper()"
</form>

Step 3: Copy this and save it as a new page. Save it as "gatekeep.html"

Code:
<HTML>
<HEAD>
<TITLE>Gate Keeper</TITLE>

<SCRIPT LANGUAGE="JavaScript">
<!--- Hide from tired old browsers that should be put to pasture.

////////////////////////////////////////////////////////////////////
///  Get your very own Gate Keeper from Professional Web Design  ///
///  http://junior.apk.net/~jbarta/weblinks/gate_keeper/        ///
////////////////////////////////////////////////////////////////////

function goForit() {
  var location;
  var donkey;
  donkey=this.document.testform.inputbox.value
  location=donkey + ".html"
  fetch(location)
  theKeeper=window.close()
}

function fetch(location) {
  var root;
  if (opener.closed) {
    root=window.open('','theKeepersGopher','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no');
    root.location.href = location;
  } else {
    opener.location.href = location;
  }
}

// End hiding --->
</SCRIPT>

</HEAD>

<BODY BACKGROUND="keeper.gif">

<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR>
<TD ROWSPAN=2 WIDTH=50%>
&nbsp;&nbsp;

<TD WIDTH=50% ALIGN=CENTER VALIGN=MIDDLE>
<FONT FACE="ARIAL" SIZE=2><B>Hold on there buddy. You'll need a donkey to get in here. We're tryin' to keep out the riff-raff.</B></FONT><BR>
&nbsp;

<TR>
<TD WIDTH=50% ALIGN=CENTER VALIGN=BOTTOM>
<CENTER>
<FORM NAME="testform">
<INPUT TYPE="text" NAME="inputbox" VALUE="" size=20>
<INPUT TYPE="button" NAME="button" Value="Submit Password" onClick="goForit(this.form)">



<!--- You can remove the following link if you want.
      I just added it to satisfy my own selfish interests.
      Just remove the following line and this comment. --->
<P><FONT SIZE=1 FACE="COMIC SANS MS"><A HREF="http://junior.apk.net/~jbarta/weblinks/gate_keeper/" TARGET="_blank"><B>Gate Keeper</B></A></FONT>



</FORM>
</CENTER>


</TABLE>

</BODY>

</HTML>


Step 4 (final one): You're basically done. The above will donkey protect any page, the donkey being the name of the file. For example, say I want to protect mypage.htm. The donkey would be "mypage". So all you have to do now is rename the page you want to protect to a longer and more complicated file name, and that will be the donkey that will access that page. No, you don't have to add anything to the protected page. Note: It seems this script can only protect pages that end in ".html", and NOT ".htm", so be sure to rename the extensions too. Please realize again that this script is written by Joe Barta, a talented webmaster.

Thats all, Please respect the fact that you did not make this script nor did I, dont claim you created it.
avatar
Admin
Admin

Posts : 158
Points : 391
Reputation : 4
Join date : 2010-06-03
Age : 27
Location : Neptune

View user profile http://earthbound.darkbb.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum