0

I have a flash swf application and the swf need the support of the .php files to get data. But my server folder is protected with htaccess and htpasswd. So the access from flash is not possible. How can I overcome this situtation?

coderex
  • 27,225
  • 45
  • 116
  • 170
  • Even if you could put the credentials in the flash file, that would just defeat the point of the protection completely, because the flash file could then be decompiled (it's not difficult) and the password revealed. – qmega Aug 12 '10 at 05:22

3 Answers3

0

You could make a little proxy php script that gets the data from the protected files and sends that data back to flash.

dotminic
  • 1,135
  • 2
  • 14
  • 28
0

This is not possible. Flash is not able to send credentials to the server, but as __dominic said, you would require a PHP script to login for you. This would act as a 'gateway' to your data, but the PHP script acting as the gateway would have to be in a non-password protected folder so Flash could access it.

Joel Kennedy
  • 1,581
  • 5
  • 19
  • 41
0

This should be possible. See other thread.

Community
  • 1
  • 1
Daniel R
  • 1,439
  • 11
  • 8