1 pay 1 game

Discussion in 'JavaScript' started by captainnetpro, Dec 13, 2009.

  1. #1
    have a game page on my site and I am trying to protect direct access to it by .htaccess .htpasswd but is not accepting user name and password?

    .htaccess:

    AuthUserFile /home/vhosts/kandcoentertainment.freetzi.com/.htpasswd
    AuthType Basic
    AuthName "game1"

    <Files "cookietest.html">
    Require valid-user
    </Files>

    .htpasswd

    test:8888

    Any suggestions on why it is not working?


    What I would like to do is have apay and play once setup but as I am a novice and dont have a clue HELP PLEASE!!!

    What I have been told is - protect the files, add a client side cookie to game page then upon url payment return validate cookie giving single access and when played the user cannot replay by refresh or just typing in url because cookie expired ? I have tried to write the scripts up with no success.
     
    Last edited: Dec 13, 2009
    captainnetpro, Dec 13, 2009 IP