PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 9th, 2000, 01:57 PM
asktan asktan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 13 asktan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have developed a flash file (Macromedia Flash 4) and I put at the server. But this flash file can't be downloaded by people (read,copy), unless he/she had registerd the user member.
So anyone know how to write PHP code to protect the flash file. Thank you.

Reply With Quote
  #2  
Old May 9th, 2000, 04:07 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>But this flash file can't be downloaded by people (read,copy)
If this flash file is visible on your page, it's downloadable no matter where you hide it.

What you can do is to make a preview using GIF animation or whatever, then make a link to download your *.swf file.

Wait a minute, do you know what is the difference between SWF file and FLA file?

Reply With Quote
  #3  
Old May 10th, 2000, 06:58 AM
timbo timbo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 1999
Location: London
Posts: 110 timbo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 26 sec
Reputation Power: 0
err, how do you know if they have logged in/registered ?
if you are running sessions or place a cookie on them then just have an if () stmt in your page that checks to see if they are a member, if so, they can download/see the link whatever if not, they dont even know its there

hth

------------------
cheers

Reply With Quote
  #4  
Old May 11th, 2000, 12:28 PM
asktan asktan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 13 asktan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
for example
i put my happy.swf at path "www.happy.com/flash/myfile/"

if a user browse the file:"www.happy.com/flash/myfile/happy.swf"

then this person know the path, sure he can download it.

So it is no secure...

what I do is I got a table to keep user name and password. then if people login, then set cookie. So I am going to protect this file.

so how I going to do, thank you

Reply With Quote
  #5  
Old May 11th, 2000, 08:34 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>then this person know the path, sure he can download it.

You can simply use htaccess+htpasswd to protect just your 'myfile' directory.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > protect flash file (.swf) with PHP3

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap