yoshiweb.NET

カスタムポリシーファイル crossdomain.xml について

Flash でドメインをまたいで外部ファイルを読み込みたい場合
参照側のサーバー(外部ファイルが置いてある方)に
crossdomain.xmlという名前のXMLが必要らしいです。


XMLの書き方は

全てのドメインのアクセスを許可する(どこからでもOK〜!にする)ときは
以下の記述をしたXML「crossdomain.xml」をルートディレクトリに配置




他の全てのドメインから読み込まれるのを防ぐ(他のドメインは全部ダメー!にする)ときは
crossdomain.xmlファイルを設置しない!
もしくはallow-access-from タグのない crossdomain.xml ファイルをルートディレクトリに配置



crossdomain.xml の各要素の内容




メタポリシー設定
all: すべてのポリシーファイルが許可されます。
by-content-type: Content-Typeがtext/x-cross-domain-policyのすべてのポリシーファイルが許可されます。
by-ftp-filename: FTPサーバにのみ使用できます。
master-only: マスターポリシーファイル( /crossdomain.xmlにあります)のみが許可されます。
none: ポリシーファイルは許可されません。
none-this-response: HTTP応答ヘッダでのみ指定できる特別なメタポリシー。

ドメインの指定の仕方は
・完全なドメイン名 (例:www.example.co.jp )
・IP アドレス (例:65.57.83.12 )
・ワイルドカードを使用したドメイン名 (例:*.example.co.jp )
・完全なワイルドカード:* (アスタリスクひとつ)
※この場合、すべてのドメイン、および IP アドレスからのアクセスが許可される。


例:www.example.co.jp上に設置されたFlashからの、80番ポートへのアクセスを許可する







例:HTTPS サーバーへ、HTTPサーバー上に設置されたFlashからのアクセスを許可する








※ 2008/04 の Flash Player セキュリティアップデートから
HTTP リクエスト送信時にヘッダに属性を追加する場合は、以下のような記述も必要になるそうです。
Adobe - デベロッパーセンター : ドメイン間でヘッダを送信するにはポリシーファイルが必須


例:Basic認証のかかってるサーバーにヘッダをつけてリクエストを送る場合










【基本情報】
Flashヘルプ - ドメイン間のデータロード許可
Flash Player 7 におけるセキュリティの変更について(英語)


【Flash Player9のセキュリティアップデート関連情報】
セキュリティに関するFlash Player 9の変更点
緊急情報:2008年4月に行われるFlash Player9のセキュリティアップデートへの対応のお願い
akihiro kamijo: 来月 (2008/4) の Flash Player セキュリティアップデート
akihiro kamijo: ソケットポリシーファイルと Flash Player セキュリティ

※ 全部許可した場合のリスクは下記のリンク先が参考になりそうです。
crossdomain.xml と CSRF 脆弱性について - 川o・-・)<2nd life<
ここが危ない!Web2.0のセキュリティ:第4回 Flash,JSONでのクロスドメインアクセス|gihyo.jp … 技術評論社
Flashとポリシーファイルの密接なカンケイ − @IT

クロスドメインポリシーファイル(crossdomain.xml)設定について | さわいじり

投稿日 : 2005年10月06日 - yoshiweb - カテゴリ: Flash

コメント

投稿者 : ごんべい

こんにちは。 ごんべいといいます。

FLASH勉強中で、このサイトを発見しました。すごく勉強になります。教えて頂きたいのですが、
allow-access-from domainを*にした場合、すべのドメイン、およびIPアドレスからアクセスが可能となりますが、その場合どのようなリスクが考えられるか教えてもらますでしょうか。
2006年07月12日 11時33分31秒

投稿者 : yoshiweb

こんにちは、ごんべいさん。
CGIなどを使えば別ドメインのデータも読み込めると思うので、それほど重大なリスクを伴うことはないような気もしますがセキュリティの専門家ではないので詳しくはわかりません。無責任な言い方ですが自己責任でお願いします。m(_ _)m
2006年07月13日 12時15分05秒

投稿者 : yoshiweb

allow-access-from domainを*にした場合のリスクについて参考になりそうなリンク先を追加しました。
ついでに to-ports 属性と secure 属性の例を追加しました。
詳しくは Adobeサイトなどを参考にしてください。
2008年01月11日 19時22分23秒

投稿者 : genpornopics.com

Keep on writing, great job!
2023年09月14日 07時35分55秒

投稿者 : https://sports-betting.plus

I think that is among the such a lot vital info for me.
And i'm happy studying your article. But should observation on few basic things, The site taste is great, the articles
is actually great : D. Good process, cheers
2023年09月15日 21時03分47秒

投稿者 : play online casino for real money

Have you ever thought about writing an e-book or guest authoring
on other websites? I have a blog centered on the same information you discuss and would love to have
you share some stories/information. I know my audience would enjoy your work.
If you're even remotely interested, feel free to shoot me an email.
2023年09月17日 12時48分26秒

投稿者 : genpornopics.com

Every weekend i used to pay a visit this web site, because i
wish for enjoyment, as this this web page conations in fact nice funny information too.
2023年09月20日 04時59分30秒

投稿者 : play online casino usa

You ought to take part in a contest for one of the best blogs on the web.

I most certainly will recommend this site!
2023年09月22日 03時58分02秒

投稿者 : online casino usa real money

It is the best time to make a few plans for the future and it's time to be
happy. I've read this submit and if I could I desire to counsel you few fascinating
things or tips. Maybe you can write next articles regarding this article.
I want to learn even more issues about it!
2023年10月01日 10時11分58秒

投稿者 : best online casino

First of all I would like to say terrific blog! I had a quick question which I'd like
to ask if you don't mind. I was interested to know how you center yourself
and clear your thoughts prior to writing. I have had trouble
clearing my thoughts in getting my ideas out there. I truly do take pleasure
in writing however it just seems like the first 10 to 15 minutes are wasted simply just
trying to figure out how to begin. Any ideas or hints?
Thank you!
2023年10月01日 16時12分07秒

投稿者 : real money casinos

Greetings from Florida! I'm bored at work so I decided to browse your website on my iphone during lunch break.

I love the information you provide here and can't wait to
take a look when I get home. I'm amazed at how quick your blog loaded on my mobile ..
I'm not even using WIFI, just 3G .. Anyways, fantastic site!
2023年10月05日 18時13分26秒

投稿者 : Katrina

This is very interesting, You are a very skilled blogger.
I've joined your rss feed and look forward to seeking more of your excellent post.
Also, I've shared your website in my social networks!
2023年10月10日 11時20分14秒

投稿者 : AIporn.men

Wonderful beat ! I would like to apprentice while you amend your web site, how
can i subscribe for a blog site? The account aided me a
acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear idea
2023年10月23日 23時01分09秒

投稿者 : play slots for money

With havin so much content and articles do you ever run into
any issues of plagorism or copyright violation? My blog has a lot of completely unique content
I've either written myself or outsourced but it appears a lot
of it is popping it up all over the internet without my authorization.
Do you know any solutions to help reduce content from being stolen? I'd
really appreciate it.
2023年10月24日 01時41分53秒

投稿者 : poker online for real money

Hey! This is kind of off topic but I need some
advice from an established blog. Is it hard to set up your own blog?
I'm not very techincal but I can figure things out pretty quick.
I'm thinking about making my own but I'm not sure where to start.
Do you have any ideas or suggestions? Many thanks
2023年10月24日 16時33分13秒

投稿者 : Nicholas

Excellent way of describing, and nice piece of writing to obtain facts about my
presentation subject matter, which i am
going to convey in institution of higher education.
2023年10月25日 09時12分47秒

投稿者 : real money slot machines

Write more, thats all I have to say. Literally, it seems
as though you relied on the video to make your point. You definitely know what youre
talking about, why throw away your intelligence on just posting videos to your
site when you could be giving us something informative
to read?
2023年10月30日 22時03分59秒

投稿者 : ai porn

Touche. Outstanding arguments. Keep up the good spirit.
2023年11月01日 05時21分40秒

投稿者 : best online poker sites for us players

It's truly very complex in this busy life to listen news on Television, thus I just
use internet for that reason, and obtain the most up-to-date information.
2023年11月10日 11時33分12秒

投稿者 : https://casinosonlinereal.money/slots/

I'm amazed, I have to admit. Seldom do I come across a blog that's both educative
and entertaining, and without a doubt, you've
hit the nail on the head. The issue is an issue that not enough people
are speaking intelligently about. Now i'm very happy I stumbled across this in my hunt for something
regarding this.
2023年11月19日 22時44分34秒

投稿者 : stud poker

Very nice post. I just stumbled upon your blog and wanted to
say that I've truly loved surfing around your blog posts.
After all I'll be subscribing to your feed and I am hoping you write once more soon!
2023年11月21日 06時16分04秒

投稿者 : roulette online with real money

These are in fact great ideas in regarding blogging.
You have touched some fastidious factors here. Any way keep up
wrinting.
2023年11月28日 01時22分09秒

投稿者 : play blackjack for money online

Somebody necessarily assist to make critically articles I would state.

This is the very first time I frequented your web page and so far?
I amazed with the analysis you made to create this particular publish incredible.

Great process!
2023年12月03日 13時21分03秒

投稿者 : real money blackjack app

If you are going for finest contents like I do, simply pay a
quick visit this site every day because it presents
feature contents, thanks
2023年12月09日 06時26分56秒