Home
Getting Started
Solutions
Tutorials
Tips
SE Optimization
Customizing OL
Help and How To
Downloads
Services
Frequently Asked Question
Contact Us

Bravenet Password Gate

Note:  This solution should not be used with sensitive data.  Since it is possible to "crack."

 

1.  Sign up for a Bravenet Password Gate: http://www.bravenet.com/webtools/passwd/index.php.

 

2.  There are two copy/paste codes you will need, the first one is the Login Box, you can paste this on any page you want.  Copy the following "base" code into a Custom Footer Module:

 

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text" omit-xml-declaration="yes"/>
<xsl:template match="/Footer">
<![CDATA[
</form>
 

<form>
]]>
</xsl:template>
</xsl:stylesheet>

 

3.  Paste the Login in Form code from Bravenet after the </form> tag:

 

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text" omit-xml-declaration="yes"/>
<xsl:template match="/Footer">
<![CDATA[
</form>

<div style="text-align: right; width:210px; padding:5px;">
  <form action="
http://pub17.bravenet.com/passwd/show.php" method="post">
    <input type="hidden" name="usernum" value="1375931407" />
    <div style="padding:3px; font: bold 13px arial;">Enter Password Protected Area</div>
    <div style="padding:3px; font: normal 13px arial;">Username: <input type="text" name="uname" size="15" maxlength="30" style="width: 100px"></div>
    <div style="padding:3px; font: normal 13px arial;">Password: <input type="password" name="passwd" size="15" maxlength="30" style="width: 100px"></div>
    <div style="padding:3px;"><a style="font: bold 11px arial;" href="
http://pub17.bravenet.com/passwd/requestpwd.php?usernum=1375931407">Request Password</a> &nbsp; <input type="submit" name="submit" value="Login" style="width: 65px;"></div>
    <div style="padding:5px; font: normal 11px arial;"><a href="
http://www.bravenet.com">Powered by Bravenet</a></div>
  </form>
</div>

<form>
]]>
</xsl:template>
</xsl:stylesheet>

 

4.  Next copy/paste and modify the following code into Keywords, under Search Engine Optimization, under Page Properties, you need to change the pup# and the usernum#.  This code needs to go on the page/s you want to protect.  Make sure you use the modified code below and not Bravenet's actual code!

 

%22 /%3E%3Cscript language=%22Javascript%22 type=%22text/javascript%22 src=%22http://pub17.bravenet.com/passwd/jsnorightclick.php?usernum=1375931407%22%3E%3C/script%3E
%3Cscript language=%22Javascript%22 type=%22text/javascript%22 src=%22http://pub17.bravenet.com/passwd/jsverify.php?usernum=1375931407%22%3E%3C/script%3E
%3Cnoscript%3E
%3Cmeta http-equiv=%22refresh%22 content=%220; url=http://pub17.bravenet.com/passwd/verify.php?usernum=1375931407%22/%3E
%3Cstyle type=%22text/css%22%3E
body{display:none;}
%3C/style%3E
%3C/noscript%3E
%3Cmeta name=%22robots%22 content=%22NOINDEX,NOFOLLOW

 

The 4 places in the code that need to be changed are orange, the values can be found in the Bravenet Security code

 

Bravenet's Code (Example: Don't Use, you just need to the pub# and usernun# to change the code above!).

<script language="Javascript" type="text/javascript" src="http://pub17.bravenet.com/passwd/jsnorightclick.php?usernum=1375931407"></script>
<script language="Javascript" type="text/javascript" src="http://pub17.bravenet.com/passwd/jsverify.php?usernum=1375931407"></script>
<noscript>
  <meta http-equiv="refresh" content="0; url=http://pub17.bravenet.com/passwd/verify.php?usernum=1375931407"/>
  <body style="display:none;">
</noscript>

 

 

Resources

Updated January 11, 2011



Links

 



Search Website