Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8

Thread: 1 pay 1 game

  1. #1
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation 1 pay 1 game

    I 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 by cappronet; 12-13-2009 at 09:45 PM.

  • #2
    Banned
    Join Date
    Nov 2009
    Posts
    41
    Thanks
    0
    Thanked 1 Time in 1 Post
    Will you pay to fix it up ?

  • #3
    evo
    evo is offline
    waka Ionsurge
    Join Date
    Feb 2005
    Location
    United Kingdom
    Posts
    895
    Thanks
    5
    Thanked 12 Times in 12 Posts
    That's not in the essence of this forum hire_programmer. We give help without the expectation fo payment.

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    .htpasswd

    test:8888

    Any suggestions on why it is not working?
    Is that your actual password? If so, you'd need to generate a new .htpasswd file using the program given by apache, since this login system expects an encrypted password(AFAIK). You could see the executable/program in your /apache/bin directory (in my xampp system, it's htpasswd.exe).
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #5
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Done that

    Thanks. Firstly my host gave me the wrong path to .htpasswrd and yes I think I needed to encrypt the password?. Any way I finally got it last night. Now I need to add a cookie validation script to .htaccess? and to my paypal on payment complete actions with return url to the game page where I believe I need to validate the client side cookie. Also can I set expire 0 to cookie allowing no more access like key f5/refresh page. Does anyone know of a easy script or an even easier alternate way. Much Thanks Il.

  • #6
    Regular Coder godofreality's Avatar
    Join Date
    Jan 2009
    Posts
    234
    Thanks
    1
    Thanked 15 Times in 15 Posts
    if people are paying for a service you are providing them with i would suggest using a more stable system than cookies which the user can disable/delete and i personally would go with a mysql database for this since it is more secure
    woot found the avatar options...i swear they didn't exist b4

  • #7
    New Coder
    Join Date
    May 2007
    Posts
    47
    Thanks
    5
    Thanked 1 Time in 1 Post
    Local DB=Definitely more secure.

    Also to think about, if people are paying, your game fails to load ... your setup will need to be able to recognize that. Otherwise you'll probably get all sorts of calls from players who have problems.

  • Users who have thanked SlowCoder for this post:

    cappronet (12-18-2009)

  • #8
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation If game fails to load.

    Yes you are right that will cause lots of probs. I will need to to work on that shouldnt be to difficult. I need to do this cookie stuff first.

    I need to add a cookie script to my Paypal button html. The cookie needs to expire so no refresh or go back option is available and so will validate the cookie in the .htaccess file? and give the user limited access to game page. Help with this script will be much appreciated. Thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •