A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Getting an IP address

  1. #1
    Junior Member
    Join Date
    Jan 2001
    Posts
    2

    Getting an IP address

    Does anyone know if you can snag an IP address in flash. Would like to be able to restrict only certain IP addresses from being able to get into my swf file. Any help would be greatly appreciated.

  2. #2
    Senior Member
    Join Date
    Nov 2001
    Location
    Houston TX
    Posts
    563
    This should be done in either PHP or ASP not in flash.

    This will keep flash SWF from being loaded into the restricted
    IP.

    Think about it it you are testing an IP in Flash that means the SWF file is either already or being loaded.

    www.e4net.com
    Best regards
    Toby Mack

    For the best and funniest Audio Blog on the Internet come visit:

    http://feeds.feedburner.com/Fla****UpBlog

  3. #3
    I think i can help you
    your site must support asp for this function to work
    and its pretty simple as well...

    save ur page as yourpage.asp
    and the url of ur flash movie (in side the HTML Code should be something like

    youfile.swf?useip=<%== Request.ServerVariables("REMOTE_ADDR")>

    in the first frame of ur movie write
    if(userip!="your allowd ips"){
    gotoandplay("unauthoriseduser")
    }
    etc etc, i think you can handel flash better than me
    cuz now you have the value of the users ip in the variable "USERIP"

    Do write back

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