NameSilo

PHP + Flash help

Spaceship Spaceship
Watch

cyberkurian

New Member
Impact
0
Dear Friends,

I am a PHP programmer and currently I am on a project where I have to use Flash swf file to load image details from php file. I am creating random image and output as img=test.jpg and in flash i will take this.img and loadMovie( this.img ) to display. It is working fine. But recently I found that if anyone decompile this swf file, can get php file path and call that will display the image name and can easily see the image.

I even try amfphp to get the image name but, if any one get the service and gateway file and can write program and access the image.

Is there any way I can secure my flash and image. I am running on IIS6 server with asp and php. I need to know following

1.) Is there any way to identify - calling directly from flash or from browser.

2.) Can I put images in special directories where flash can access and direct access won't be possible

3.) IS there any settings in IIS to secure this?

Any help to this will highly appreciable.

Thanks in advance.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
0
•••
JFS said:
1)
check this...it may be usefull
http://altlab.com/htaccess_tutorial.html


edited:

and welcome to NamePros ;)
cyberkurian said:
I am running on IIS6 server

Err, that won't work unfortunately. -- And to your problem, what will stop people just print screening the image? It's more likely that them going to the trouble of decompiling it.
 
0
•••
oh... my bad sorry about that.

then you need to install Isapi_Rewrite , you will then have a similar file as htaccess available in your root directory where you can write rules to stop bad bots, hotlinking, etc.
However, you cannot copy htaccess rules because the syntax is somewhat different.

more information here - http://www.isapirewrite.com/
 
0
•••
Thanks

Thank you guys.

But my need is I have an image test.jpg in test dir. In flash I am calling a PHP file to return this test.jpg. Then I will call test/test.jpg in flash. My need is that I want only give access to the php file if flash is calling and if anyone calls by typing in the browser should return error. I tried HTTP_USER_AGENT, but when page embeded with flash returns the user agent as IE or Mozilla, but if can get any thing like flash identifier, will solve my problem.

I hope you guys understand my problem.

Thanks in advance.
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back