By: Emiley J in xml Tutorials on 2012-03-30
As a webmaster, it is a good practice to monitor your webserver error logs to tweak or fine tune your server for better performance. The fact that you are reading this article shows that you are one of those responsible webmasters. :)
There are some errors that are not so obvious when you look at them. Such as this crossdomain.xml error.
Solution: To resolve this just follow these steps.
- First goto the root folder of your website.
- Create a file named crossdomain.xml (In linux run this command 'touch crossdomain.xml"
- Add the following content to this file.
In linux 'vi crossdomain.xml" and then paste these lines.
- Save the file.
<?xml version="1.0" ?> <cross-domain-policy> <site-control permitted-cross-domain-policies="master-only"/> <allow-access-from domain="*"/> <allow-http-request-headers-from domain="*" headers="*"/> </cross-domain-policy>
That's it. You will not see these errors again in your logs.
Reason: If you are wondering what this crossdomain.xml file does and why someone is accessing it, then readon.
A cross-domain policy file is an XML document that grants a web client-such as Adobe Flash Player, Adobe Reader, etc.-permission to handle data across multiple domains. When a client hosts content from a particular source domain and that content makes requests directed towards a domain other than its own, the remote domain would need to host a cross-domain policy file that grants access to the source domain, allowing the client to continue with the transaction. Policy files grant read access to data, permit a client to include custom headers in cross-domain requests, and are also used with sockets to grant permissions for socket-based connections.
But you may be asking, I do not use any flash files in my server, then how does this happen. It is because, someone who has installed a Yontoo-based browser plugin is browsing your site. The browser plugin loads the dddWrapper.swf flash object, which in turn wants to fetch content from your domain. But to do this, it needs to access the cross-domain policy on your site, which is what the crossdomain.xml request is for.
This policy contains information about your privacy. By posting, you are declaring that you understand this policy:
- Your name, rating, website address, town, country, state and comment will be publicly displayed if entered.
- Aside from the data entered into these form fields, other stored data about your comment will include:
- Your IP address (not displayed)
- The time/date of your submission (displayed)
- Your email address will not be shared. It is collected for only two reasons:
- Administrative purposes, should a need to contact you arise.
- To inform you of new comments, should you subscribe to receive notifications.
- A cookie may be set on your computer. This is used to remember your inputs. It will expire by itself.
This policy is subject to change at any time and without notice.
These terms and conditions contain rules about posting comments. By submitting a comment, you are declaring that you agree with these rules:
- Although the administrator will attempt to moderate comments, it is impossible for every comment to have been moderated at any given time.
- You acknowledge that all comments express the views and opinions of the original author and not those of the administrator.
- You agree not to post any material which is knowingly false, obscene, hateful, threatening, harassing or invasive of a person's privacy.
- The administrator has the right to edit, move or remove any comment for any reason and without notice.
Failure to comply with these rules may result in being banned from submitting further comments.
These terms and conditions are subject to change at any time and without notice.
Most Viewed Articles (in xml )
Latest Articles (in xml)