Php :: Check Ip When Getting Request From Flash File?

Apr 4, 2012

I have a flash file that sends some request to php file every 5 minutes. How can I check if the request from flash file has been sent from my website or from other place. I want to be shure that someone is not sending requests from other locations. It is very important for security reasons. Will the following PHP code work?

if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))
{
$user_ip=$_SERVER['HTTP_X_FORWARDED_FOR'];

[code]......

View 1 Replies


Similar Posts:


Php :: Check Where Is Located Flash File Sending Request?

Apr 5, 2012

I have a flash file that is located on my website and I have a php file wich gets requests from flash file every 5 minutes. I want to be shure that flash file wich is sending request is located on my website and not somewhere else. How can I do it. Is there anything in PHPs global variables?

View 2 Replies

ActionScript 3.0 :: Check If The Beginning Of A String Match Request?

Apr 14, 2009

How would I write if I want to check if the beginning of a string match my request? Something like this but with real code
 
if(myString doesn't start with "http://"){
doSomething;
}

View 2 Replies

Flash :: Request For An Edit To A File?

Oct 26, 2010

My web designer is no longer working and has left me with a flash file which would benefit from a small edit

The file is made up of a banner which rotates between 3 images. I'd dearly like each of the images to become a link to html files already uploaded to server

The banner can be seen at self catering accommodation belfast dot com

Is it possible to request this on the forum please?

View 6 Replies

Php :: Send POST Request With X-amf (Flash) Request Header?

Apr 13, 2011

I'm trying to reproduce a POST request that was captured from WireShark using PHP. This POST request was sent by a Flash (.swf) object, so it's a little bit complicated in configuring the header.It does not print out anything in the end, so there must be something wrong with PHP code that I could not see.Here is what WireShark captured:

POST /engine/ HTTP/1.1

Host: abcdef.com

User-Agent: Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20100101 Firefox/4.0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8[code]....

The result is a blank page instead of response from server.

View 1 Replies

Flex :: Rewrite Absolute URL Request Made From A Flash (swf) File In Browser

May 13, 2010

Is there a way to rewite (or hijack) an absolute URL request made from a flash (swf) file in a browser?I have a flash application that is requesting URL..The code in the flash application cannot be changed but I want to be able to either use another flash or some javascript to write that URL as the image is beging requested - to something like URL...

View 1 Replies

Actionscript :: Post Request From A Flash File Stops Working After Published

Feb 14, 2011

I have a problem with the following code:[code]The problem is that the code is working when I test the scene (ctr+alt+enter in flash), but after I publish it it doesn't work... not sending any request nor redirect.What I want to do is to log in a file on the server what the users typed (related with Related with: Flash actionscript - save a text file on server).

View 1 Replies

Ajax :: Detect If HTTP Request Is From Browser / Flex Asynchronous Request?

Jun 1, 2010

When Flex application make an asynchronus HTTP request, does it add a special header to the request, like some JavaScript framework does? Something that indicates whether this request is an AJAX call/not.I just want my server side code to return different response format, depending on whether the request is made from browser/flex.

View 1 Replies

ActionScript 3.0 :: URL Request File Not Found

Feb 17, 2010

I just learned last night from Ned Murphy how to code a btn in AS3.Trouble is, when testing the Dreamweaver frameset website, site name: URLRequest on the C drive with my default browser F12, I get a problem loading the page / file not found.[code]Just for comparison here is the AS3 btn code Ned copy pasted to my Thread last night.[code]What is it that is stopping my browser from directing to "C:WebSitesFrameSetsURLRequestmainFrame1.html";Is it the var url:String?

View 3 Replies

Linux :: Intercept A Request To Read A Particular File And Instead Generate The Apparent Output Of That File Read Programatically

Mar 31, 2010

A friend of mine has a Flash Action script running on a LAMP server that currently reads an xml config file. He's asked me if it's possible to remove the xml file, and replace it somehow with a system (lets call it an 'auto xml generator') that intercepts the request to read that file and generates an output, so it appears to all intents and purposes as if the file still exists and contains the contents that has actually been returned from our auto xml generator'

View 3 Replies

Professional :: Check Who A Flash CS4 File Has Been Created By

Jun 7, 2011

I urgently need to be able to check the authenticity of a Flash CS4 file. There is no information given about author etc in the properties using Windows but I was hoping that Flash embeds author information and history.

View 1 Replies

Flash :: Php :: Check If An Swf File Implements ClickTAG?

Apr 20, 2011

We've been developing an affiliate system and would like to detect somehow that a compiled, SWF advert implements clickTAG or not. Is there any way to automate this process?

View 2 Replies

Professional :: Request A Local File In ActionScript 3.0?

Mar 30, 2011

How do I request a local file in ActionScript 3.0? I am using [URL] tutorial to create a light box and I would like to know how I can replace the URL in the tutorial with a local file.

View 4 Replies

ActionScript 3.0 :: By-Passing <policy-file-request/>?

Jul 11, 2007

I am working on a program that interfaces with a lab view program and used a very basic socket protocol to send and recive data. and i need to bypass the whole <policy-file-request/> bit when it comes to data sending and reciving. . How am i to do this?

my data sending code is:
<mx:Script>
<![CDATA[

[code]......

View 5 Replies

ActionScript 3.0 :: Xmlsocket And Policy-file-request?

Jun 20, 2008

I have a chat server written in Java listening on port 6000 and a client app(using an xmlsocket) in Flash 9. I get these <policy-file-request/>. I understand the purpose and I read the one solution about creating a server on port 843 and serving a master policy file but since I do not have total control over our hosting I cannot use port 843.I also tried replying to the request with "<cross-domain-policy><allow-access-from domain='*' to-ports='*'/></cross-domain-policy>" + "�" but nothing happens.The other really strange thing is that using Firefox the file request waits for the response and does nothing...but in IE7 the file request goes through then it continues to work even with no response, I can send/receive using the socket without problem.Does anyone know a good way to 'satisfy' the file request using the Java server listening on port 6000?

View 5 Replies

Check If A Certain File Exists On The Client-side Using Flash?

Sep 5, 2009

Don't mind about the file's content, just want to know if it exists or not...

View 3 Replies

Html :: Check Input File Size Using Flash

Nov 29, 2010

I have a multipart html form with a file input element and would like to check the size of the selected file before uploading. I can access the file path using the value attribute, however is it possible to pass that path to a swf and have the swf return the file size or is this blocked by the flash sandbox? Are there any existing projects that already do this? I'd like to avoid replacing my file input element with a flash uploader if possible.

View 1 Replies

Flex :: Passing Request File Into Application With Flashvar?

Oct 10, 2011

I am trying to get a xml file with data into Flex application. There are a lot of examples online passing parameter into f. However, it doesn't really work in my case.here is my code in HTML:

var flashvars = {};
flashvars.storageStatsXML = "stats.xml";
var params = {};

[code].....

View 1 Replies

ActionScript 3.0 :: Socket Sending Policy-file-request Twice?

Dec 8, 2009

Running my Flash app from localhost (in debug) I can connect/contact the socket server just fine. Note: It doesn't seem as though the server detects any 843 connection (e.g. the policy file port) this way. However, when I move the app to the server itself and run it from there (i.e. from the website), it will send the policy file, get a disconnect (as it should), and then try to execute the regular port stuff but doesn't read anything from Flash. It seems like my Flash app isn't writing to the port as it should, or something else is going wrong. I did also notice that Flash seems to be trying to send the policy-file-request twice.My process right now is like this:

1) Flash tries to connect to port 843. The server responds to its <policy-file-request/> with the policy file.

2) Flash reads it, disconnects from 843

3) Server gets graceful disconnect, then gets another connection on 843.

4) Just after that, the server gets a connection on 2188, but reads another <policy-file-request/>, so sends the policy file again.

5) At this point, Flash SHOULD simply write the string "Test" to the socket (that's in my connect handler). However, my server doesn't seem to read anything on the socket after the second <policy-file-request/>.[code]

View 1 Replies

Html :: Have A Check For Older Version On Flash When Embedding A Swf File?

Jun 14, 2011

I have a swf file embedded in my html page. How do I have a check for the older version on flash version, and if its an older version, I want to prompt the user to install a new version.My html page code is below, and it has two swf files embedded (login.swf and whats_new.swf)

<!DOCTYPE html>
Cloud.cm - Connect.Collaborate.Share
Cloud brings online collaboration to your documents, music, video, calendar, email and chat

[code]....

View 1 Replies

Flex :: Make A POST Request With Parameters And An Attached File?

Apr 23, 2010

Make a POST request with parameters and an attached file

View 1 Replies

Wcf :: WCF REST Upload File (some Files Succeed - 200, Some Fail - 400 Bad Request)?

Apr 19, 2011

Here's my WCF REST endpoint:

[WebInvoke(Method = "POST", UriTemplate = "_test/upload")]
public void UploadImage(Stream data)
{[code].....

And I'm using the multipart parser from here: http://antscode.blogspot.com/2009/11/parsing-multipart-form-data-in-wcf.html.My issue is that the above works great for some files (.bat, .txt, .cs, .doc) - I see in Fiddler all the good signs including the 200 (OK) status. When I try to upload other files (.xls, .vsd), it fails with a 400 (Bad Request) status. I'm very surprised that a .doc would work and a .xls and .vsd would fail.

It is consistent as well. I've uploaded several .doc files successfully without any failures. I've also tried to upload several .xls files - some succeed, some fail (the successes are consistent over and over, the failures are consistent over and over). As I write this and test more and more files, there is a .pdf file that consistently produces a 504 (Fiddler - Receive Failure) error.

FYI, I am using Flex on the client and using the FileReference class to do the uploads. The Flex code is as standard as they come - using this code with the only change being the WCF REST URL: http:[url].....

View 1 Replies

ActionScript 3.0 :: Sockets, Security And Classes Policy-file-request/> Hell?

Feb 15, 2008

Last few months I experienced lot pain of due to Flash Player 9 version 3 (I thought that 9 is version no.).

Last thing is new socket policy files and all the new security "improvements". We finally forced sockets to works, to:[URL]..

[Code]...

How I can wrap socket class and avoid <policy-file-request/>?

View 14 Replies

ActionScript 3.0 :: Check File Name Case When Loading A File?

Sep 21, 2009

Is there a way to check file name case when loading a file? For example:

My URLRequest has this: "filename1.swf", but the actual file on the server is this FILENAME1.swf. Since the file names do not match case, is there a way i can have flash and AS3 catch this?

View 2 Replies

Locate And Check The Date Of An External File (either .exe Or .swf) And Return That Date String To A Variable In Flash

Dec 11, 2009

I'm using flash CS4 and actionscript 2.0. I have a situation where I need to locate and check the date of an external file (either .exe or .swf) and return that date string to a variable in flash. I then need to display that date to a piece of dynamic text within the flash file. Is there a function within action script that will check and retrieve the file date of an external file.

View 4 Replies

Javascript :: HTML <input Type="file"... Check Filesize With Flash?

Jun 10, 2010

I'd like to know how to use the JavaScript onChange event on <input type="file"... so that when a user selected files, onChange will call Flash to return the file's size and decide what to do next.2nd. How to use JavaScript to exclude this check, if the browser doesn't have Flash.

View 1 Replies

Flash :: Request Came From Swf?

Jul 23, 2010

I have an application developed in flash, and I need to access some php files. so the php file return some data if the access is came from swf. How can i identify if the request came from flash or not?

without passing get/post variables to php.

View 5 Replies

Flash :: When / How To Initialize A URL Request

Jun 30, 2011

I have made an image upload manager. I made it initially in Flash Develop as an AS class. I need to convert it to a component in Flash Builder 4.5 It works absolutely fine as a .swf, but I can't figure out how to make the URL request work in Flash Builder. This is what I have between the tags:[code]I didn't put the mxml controls but there is a browse button (id="selects_btn") and a label (id="label_txt") under the button that displays various status messages.I tried adding the init function to the component's creationComplete event. I receive and error saying access of a null object.

View 2 Replies

ActionScript 2.0 :: Way To Check XML File

Aug 7, 2006

I am working with Flash 8 and am wondering if there is some script to add that would have the .fla check the external XML file every few seconds for updates?

View 1 Replies

Flash :: Possible To Request Gsessionid Without A 302 Response?

Dec 22, 2009

I'm writing a google gdata API client in Flash/AS2 (sadly, moving to AS3 is not an option at this time). Logging in via ClientLogin works fine but subquent requests will return a 302 redirect that includes a gsessionid I am supposed to include with future requests to avoid the 302s.

Flash/AS2, AFAIK, does not allow me to actually query an http error response body in any way, so there's no way for me to actually see this gsessionid after the 302 is returned. Is there a gdata api call which will return me a valid gsessionid inside an HTTP 200 response if I already have a valid GoogleLogin auth token, or is this not possible without a man-in-the-middle proxy?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved