A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Restricting an IP adress to one input.

  1. #1
    Member
    Join Date
    Mar 2009
    Posts
    76

    Restricting an IP adress to one input.

    Is there a way I can set a cookie or only allow an IP address to edit my XML with my SWF file only once a day? Maybe with php?

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    hi,

    Yes, it's possible.
    You can use PHP to grab the user's IP and to validate it.
    PHP Code:
    <?php
    $user_ip 
    $SERVER['REMOTE_ADDR'];
    if (
    $user_ip != 'something')
    {
     exit(
    'not valid');
    }
    ?>

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center