A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Redirecting a swf file for security reasons

  1. #1
    Senior Member
    Join Date
    Aug 2005

    Redirecting a swf file for security reasons

    Hello All,

    For security reasons I do not want people to be able to directly browse to http://www.mydomain.com/myMovie.swf; I want them only to see the swf from the page it is embedded in: http://www.mydomain.com/index.cfm How do I ensure that if the user browses to the first link, it will redirect him (because its just a raw swf and not an html or coldfusion page i cant use javascript or coldfusion code etc). Thanks.

  2. #2
    Registered User
    Join Date
    Feb 2001

    I have seen people using php sessions for that: the index page creates a session, and then either
    - the swf is replaced by a php delivering swf (so you would see <embed src="movie.php"> in the index page) or
    - the swf wants to talk to the server, and that fails without the session.
    To be honest, someone dedicated to view the movie would get it anyway. If you want to just stop people from embedding your movie into other websites, perhaps the server gas some "htolink protection" or similar to help you


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