{"title":"Django におけるセキュリティ","version":"2.0","locale":"ja","docname":"topics/security","url":"/ja/2.0/topics/security/","canonical":"https://djangodocs.dev/ja/2.0/topics/security/","summary":"このドキュメントは、Django のセキュリティ機能の概要です。Django を利用したサイトを安全なものにするためのヒントを説明します。","html":"<h1>Django におけるセキュリティ<a class=\"heading-anchor\" href=\"#security-in-django\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p>このドキュメントは、Django のセキュリティ機能の概要です。Django を利用したサイトを安全なものにするためのヒントを説明します。</p>\n<section id=\"cross-site-scripting-xss-protection\">\n<span id=\"cross-site-scripting\"></span><h2>クロス・サイト・スクリプティング (XSS) の防御<a class=\"heading-anchor\" href=\"#cross-site-scripting-xss-protection\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>XSS 攻撃はあるユーザーに対してクライアント用のスクリプトを別のユーザーのブラウザに読み込ませることを可能にしてしまいます。この攻撃は通常他のユーザーに対して選択・表示を行うデータベース内に悪意のあるスクリプトを保存させる、あるいは攻撃者の JavaScript がブラウザで実行されるリンクをユーザーにクリックさせることでなされます。しかしながら、XSS 攻撃はページを読み込む前に十分なサニタイズを行っていなければ、信頼できないクッキーやウェブ・サービスのようなデータが発生の原因となることがあります。</p>\n<p>Django のテンプレートを用いる事で多数の XSS 攻撃に対抗することができます。しかしながら、それがどのような防御策が用意でき、またその利用に際する制限について知ることが重要になります。</p>\n<p>Django は HTML に対して特に危険とみなされる <a class=\"reference internal\" href=\"/ja/2.0/ref/templates/language/#automatic-html-escaping\"><span class=\"std std-ref\">特定の文字列のエスケープ</span></a> を行います。この防御によってユーザーは大半の悪意のある入力から守られますが、いつも簡単で容易に利用できる訳ではありません。たとえば、次に示す例では防御がなされません。</p>\n<div class=\"code-block\" data-language=\"text\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Text</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Text code\"><code>&lt;style class={{ var }}&gt;...&lt;/style&gt;\n</code></pre></div>\n<p>もし <code class=\"docutils literal notranslate\">var</code> の値が <code class=\"docutils literal notranslate\">'class1 onmouseover=javascript:func()'</code> にセットされた場合、不完全な HTML をそのブラウザがどのようにレンダリングするかによっては、許可されていない Javascript を実行させる事になります。(このケースであれば属性値のクオートを行えば対処できます)</p>\n<p>カスタム・テンプレート・タグと共に <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>is_safe``を用いたり、<a class=\"reference internal\" href=\"/ja/2.0/ref/templates/builtins/#std-templatefilter-safe\"><code class=\"xref std std-tfilter docutils literal notranslate\">safe</code></a> テンプレートタグや、<a class=\"reference internal\" href=\"/ja/2.0/ref/utils/#module-django.utils.safestring\" title=\"django.utils.safestring: Functions and classes for working with strings that can be displayed safely without further escaping in HTML.\"><code class=\"xref py py-mod docutils literal notranslate\">mark_safe</code></a> の利用に加えてオートエスケープが無効化されている場合十分な注意を払う必要が有ります。</p>\n<p>ここまでの内容に加えて、HTML 以外を出力するのにテンプレートシステムを利用している場合、完全に別のエスケープすべき文字や単語が存在するかもしれません。</p>\n<p>HTML をデータベース内に収集、特にその HTML が選択・表示される場合は十分な注意を払う必要が有ります。</p>\n</section>\n<section id=\"cross-site-request-forgery-csrf-protection\">\n<h2>クロス・サイト・リクエスト・フォージェリ(CSRF)の防御<a class=\"heading-anchor\" href=\"#cross-site-request-forgery-csrf-protection\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>CSRF 攻撃は悪意ある利用者が、あるユーザーが自身で持っている情報や承認を用いずに、そのユーザーの認証情報での処理を発生させてしまう攻撃です。</p>\n<p>Django は大半の CSRF 攻撃に対応したビルトインの防御機構を備え、適切な所で:ref:有効化して利用できます &lt;using-csrf&gt;。しかしながら、いかなる緩和策にも制限が存在します。例えば、CSRF モジュールをグローバルにあるいは特定のビューだけ無効化できます。これは自身が何をしているのか理解している場合のみ行うべきです。もしあなたのサイト内に管理対象外のサブドメインが存在すればそこにも:ref:<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>制限 &lt;csrf-limitations&gt;`が存在します。</p>\n<p><a class=\"reference internal\" href=\"/ja/2.0/ref/csrf/#how-csrf-works\"><span class=\"std std-ref\">CSRFプロテクション</span></a> はそれぞれのPOSTリクエストのシークレットを検証することで動作します。これにより、悪意のあるユーザーがあなたのウェブサイトに対して単純にフォームのPOSTを「再送信」することはできず、他のログイン済みユーザーは意識することなくフォームを送信することができます。悪意のあるユーザーはCookieを使用したユーザー固有のシークレットを知る必要があります。</p>\n<p><span class=\"xref std std-ref\">HTTPS ` で接続されている場合、 ``CsrfViewMiddleware`</span> は HTTP referer ヘッダが（サブドメインとポートを含め）同一オリジンのURLにセットされているかをチェックします。HTTPSでは強化されたセキュリティを利用できるため、可能な限り安全でない接続リクエストを転送したり、サポートされたブラウザにはHSTSを使用するなどしてHTTPS接続を使用することが不可欠です。</p>\n<p>どうしても必要という場合を除いて、 <code class=\"docutils literal notranslate\">csrf_exempt</code> デコレータでビューをマークする際には十分注意してください。</p>\n</section>\n<section id=\"sql-injection-protection\">\n<span id=\"id1\"></span><h2>SQL injectionへの防御<a class=\"heading-anchor\" href=\"#sql-injection-protection\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>SQL injectionは、悪意ある攻撃者がデータベース任意のSQLコードを実行する攻撃です。これによって、レコードが削除されたり、情報が漏洩する可能性があります。</p>\n<p>Djangoのクエリセットは、クエリのパラメータ化によってクエリを構成するため、SQL injectionから守られています。クエリのSQLコードはそのクエリのパラメータとは独立に定義されています。パラメータはユーザが指定するものも有り、安全ではないので、underlying database driverによってエスケープされます。</p>\n<p>Django開発者はまた、生のクエリを書くことやcustom SQLを実行することができます。これらの手段は慎重に用いなければいけません。開発者は常に、ユーザがコントロールできるパラメータを適切にエスケープしなければなりません。加えて、extra()とRawSQLを使うときには警戒を忘れないようにしなければなりません。</p>\n</section>\n<section id=\"clickjacking-protection\">\n<h2>Clickjacking に対する防御<a class=\"heading-anchor\" href=\"#clickjacking-protection\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Clickjacking は、悪意のあるサイトが他のサイトをフレームの中に表示するタイプの攻撃です。攻撃の結果、疑いのないユーザーが騙されてターゲットのサイトに対して意図しない操作を行ってしまいます。</p>\n<p>Django contains <a class=\"reference internal\" href=\"/ja/2.0/ref/clickjacking/#clickjacking-prevention\"><span class=\"std std-ref\">clickjacking protection</span></a> in\nthe form of the\n<a class=\"reference internal\" href=\"/ja/2.0/ref/middleware/#django.middleware.clickjacking.XFrameOptionsMiddleware\" title=\"django.middleware.clickjacking.XFrameOptionsMiddleware\"><code class=\"xref py py-mod docutils literal notranslate\">X-Frame-Options middleware</code></a>\nwhich in a supporting browser can prevent a site from being rendered inside\na frame. It is possible to disable the protection on a per view basis\nor to configure the exact header value sent.</p>\n<p>サードパーティのサイト上でページをフレーム内に表示する必要がないか、もし合ったとしてもごく少数のセクションしかないようなあらゆるサイトは、このミドルウェアを使用することを強く推奨します。</p>\n</section>\n<section id=\"ssl-https\">\n<span id=\"security-recommendation-ssl\"></span><h2>SSL/HTTPS<a class=\"heading-anchor\" href=\"#ssl-https\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>セキュリティの点ではサイトを HTTPS の下でデプロイするのは常に良い選択です。HTTPS がなければ、悪意のあるネットワークユーザーが、認証情報またはクライアント・サーバー間で転送されるその他あらゆる情報を盗み見たり、場合によっては、<strong>活動的な</strong> ネットワーク攻撃者が両方向のデータを書き換えることが可能になってしまいます。</p>\n<p>HTTPS が提供するプロテクトを使用するには、サーバー上で有効にし、いくつかの追加作業が必要になります。</p>\n<ul>\n<li><p>If necessary, set <a class=\"reference internal\" href=\"/ja/2.0/ref/settings/#std-setting-SECURE_PROXY_SSL_HEADER\"><code class=\"xref std std-setting docutils literal notranslate\">SECURE_PROXY_SSL_HEADER</code></a>, ensuring that you have\nunderstood the warnings there thoroughly. Failure to do this can result\nin CSRF vulnerabilities, and failure to do it correctly can also be\ndangerous!</p></li>\n<li><p>Set <a class=\"reference internal\" href=\"/ja/2.0/ref/settings/#std-setting-SECURE_SSL_REDIRECT\"><code class=\"xref std std-setting docutils literal notranslate\">SECURE_SSL_REDIRECT</code></a> to <code class=\"docutils literal notranslate\">True</code>, so that requests over HTTP\nare redirected to HTTPS.</p>\n<p>Please note the caveats under <a class=\"reference internal\" href=\"/ja/2.0/ref/settings/#std-setting-SECURE_PROXY_SSL_HEADER\"><code class=\"xref std std-setting docutils literal notranslate\">SECURE_PROXY_SSL_HEADER</code></a>. For the\ncase of a reverse proxy, it may be easier or more secure to configure the\nmain Web server to do the redirect to HTTPS.</p>\n</li>\n<li><p>'secure' クッキーを使用する</p>\n<p>If a browser connects initially via HTTP, which is the default for most\nbrowsers, it is possible for existing cookies to be leaked. For this reason,\nyou should set your <a class=\"reference internal\" href=\"/ja/2.0/ref/settings/#std-setting-SESSION_COOKIE_SECURE\"><code class=\"xref std std-setting docutils literal notranslate\">SESSION_COOKIE_SECURE</code></a> and\n<a class=\"reference internal\" href=\"/ja/2.0/ref/settings/#std-setting-CSRF_COOKIE_SECURE\"><code class=\"xref std std-setting docutils literal notranslate\">CSRF_COOKIE_SECURE</code></a> settings to <code class=\"docutils literal notranslate\">True</code>. This instructs the browser\nto only send these cookies over HTTPS connections. Note that this will mean\nthat sessions will not work over HTTP, and the CSRF protection will prevent\nany POST data being accepted over HTTP (which will be fine if you are\nredirecting all HTTP traffic to HTTPS).</p>\n</li>\n<li><p><a class=\"reference internal\" href=\"/ja/2.0/ref/middleware/#http-strict-transport-security\"><span class=\"std std-ref\">HTTP Strict Transport Security</span></a> (HSTS) を使用する</p>\n<p>HSTS is an HTTP header that informs a browser that all future connections\nto a particular site should always use HTTPS. Combined with redirecting\nrequests over HTTP to HTTPS, this will ensure that connections always enjoy\nthe added security of SSL provided one successful connection has occurred.\nHSTS may either be configured with <a class=\"reference internal\" href=\"/ja/2.0/ref/settings/#std-setting-SECURE_HSTS_SECONDS\"><code class=\"xref std std-setting docutils literal notranslate\">SECURE_HSTS_SECONDS</code></a>,\n<a class=\"reference internal\" href=\"/ja/2.0/ref/settings/#std-setting-SECURE_HSTS_INCLUDE_SUBDOMAINS\"><code class=\"xref std std-setting docutils literal notranslate\">SECURE_HSTS_INCLUDE_SUBDOMAINS</code></a>, and <a class=\"reference internal\" href=\"/ja/2.0/ref/settings/#std-setting-SECURE_HSTS_PRELOAD\"><code class=\"xref std std-setting docutils literal notranslate\">SECURE_HSTS_PRELOAD</code></a>,\nor on the Web server.</p>\n</li>\n</ul>\n</section>\n<section id=\"host-header-validation\">\n<span id=\"host-headers-virtual-hosting\"></span><h2>Host ヘッダーの検証<a class=\"heading-anchor\" href=\"#host-header-validation\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Djangoはいくつかのケースで、URLを組み立てるためにクライアントから送られてきた <code class=\"docutils literal notranslate\">Host</code> ヘッダーを使用します。 <code class=\"docutils literal notranslate\">Host</code> ヘッダーの値は、クロス・サイト・スクリプティング (XSS) 攻撃を回避するためにサニタイズされますが、それでもまだニセの <code class=\"docutils literal notranslate\">Host</code> 値はクロス・サイト・リクエスト・フォージェリ (CSRF) やキャッシュポイズニング攻撃、Eメールアドレス内のリンクへのポイズニング等に使用されます。</p>\n<p>Because even seemingly-secure web server configurations are susceptible to fake\n<code class=\"docutils literal notranslate\">Host</code> headers, Django validates <code class=\"docutils literal notranslate\">Host</code> headers against the\n<a class=\"reference internal\" href=\"/ja/2.0/ref/settings/#std-setting-ALLOWED_HOSTS\"><code class=\"xref std std-setting docutils literal notranslate\">ALLOWED_HOSTS</code></a> setting in the\n<a class=\"reference internal\" href=\"/ja/2.0/ref/request-response/#django.http.HttpRequest.get_host\" title=\"django.http.HttpRequest.get_host\"><code class=\"xref py py-meth docutils literal notranslate\">django.http.HttpRequest.get_host()</code></a> method.</p>\n<p>このヘッダの検証は <a class=\"reference internal\" href=\"/ja/2.0/ref/request-response/#django.http.HttpRequest.get_host\" title=\"django.http.HttpRequest.get_host\"><code class=\"xref py py-meth docutils literal notranslate\">get_host()</code></a> メソッドの実行時にのみ適用されます。もし <code class=\"docutils literal notranslate\">request.META</code> から直接 <code class=\"docutils literal notranslate\">Host</code> ヘッダにアクセスするコードを書いてしまうと、このセキュリティプロテクションを回避してしまうので注意してください。</p>\n<p>より詳しい情報については、<a class=\"reference internal\" href=\"/ja/2.0/ref/settings/#std-setting-ALLOWED_HOSTS\"><code class=\"xref std std-setting docutils literal notranslate\">ALLOWED_HOSTS</code></a> ドキュメントをご覧ください。</p>\n<aside class=\"admonition admonition-warning\" role=\"note\">\n<p class=\"admonition-title\">警告</p>\n<p>Previous versions of this document recommended configuring your web server to\nensure it validates incoming HTTP <code class=\"docutils literal notranslate\">Host</code> headers. While this is still\nrecommended, in many common web servers a configuration that seems to\nvalidate the <code class=\"docutils literal notranslate\">Host</code> header may not in fact do so. For instance, even if\nApache is configured such that your Django site is served from a non-default\nvirtual host with the <code class=\"docutils literal notranslate\">ServerName</code> set, it is still possible for an HTTP\nrequest to match this virtual host and supply a fake <code class=\"docutils literal notranslate\">Host</code> header. Thus,\nDjango now requires that you set <a class=\"reference internal\" href=\"/ja/2.0/ref/settings/#std-setting-ALLOWED_HOSTS\"><code class=\"xref std std-setting docutils literal notranslate\">ALLOWED_HOSTS</code></a> explicitly rather\nthan relying on web server configuration.</p>\n</aside>\n<p>Additionally, Django requires you to explicitly enable support for the\n<code class=\"docutils literal notranslate\">X-Forwarded-Host</code> header (via the <a class=\"reference internal\" href=\"/ja/2.0/ref/settings/#std-setting-USE_X_FORWARDED_HOST\"><code class=\"xref std std-setting docutils literal notranslate\">USE_X_FORWARDED_HOST</code></a> setting)\nif your configuration requires it.</p>\n</section>\n<section id=\"session-security\">\n<h2>セッションのセキュリティ<a class=\"heading-anchor\" href=\"#session-security\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Similar to the <a class=\"reference internal\" href=\"/ja/2.0/ref/csrf/#csrf-limitations\"><span class=\"std std-ref\">CSRF limitations</span></a> requiring a site to\nbe deployed such that untrusted users don't have access to any subdomains,\n<a class=\"reference internal\" href=\"/ja/2.0/topics/http/sessions/#module-django.contrib.sessions\" title=\"django.contrib.sessions: Provides session management for Django projects.\"><code class=\"xref py py-mod docutils literal notranslate\">django.contrib.sessions</code></a> also has limitations. See <a class=\"reference internal\" href=\"/ja/2.0/topics/http/sessions/#topics-session-security\"><span class=\"std std-ref\">the session\ntopic guide section on security</span></a> for details.</p>\n</section>\n<section id=\"user-uploaded-content\">\n<span id=\"user-uploaded-content-security\"></span><h2>ユーザーがアップロードしたコンテンツ<a class=\"heading-anchor\" href=\"#user-uploaded-content\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<aside class=\"admonition admonition-note\" role=\"note\">\n<p class=\"admonition-title\">注釈</p>\n<p>以下に説明する問題を回避するには <a class=\"reference internal\" href=\"/ja/2.0/howto/static-files/deployment/#staticfiles-from-cdn\"><span class=\"std std-ref\">serving static files from a cloud service or CDN</span></a> の利用を検討してください。</p>\n</aside>\n<ul>\n<li><p>If your site accepts file uploads, it is strongly advised that you limit\nthese uploads in your Web server configuration to a reasonable\nsize in order to prevent denial of service (DOS) attacks. In Apache, this\ncan be easily set using the <a class=\"reference external\" href=\"https://httpd.apache.org/docs/2.4/mod/core.html#limitrequestbody\">LimitRequestBody</a> directive.</p></li>\n<li><p>If you are serving your own static files, be sure that handlers like Apache's\n<code class=\"docutils literal notranslate\">mod_php</code>, which would execute static files as code, are disabled. You don't\nwant users to be able to execute arbitrary code by uploading and requesting a\nspecially crafted file.</p></li>\n<li><p>Django's media upload handling poses some vulnerabilities when that media is\nserved in ways that do not follow security best practices. Specifically, an\nHTML file can be uploaded as an image if that file contains a valid PNG\nheader followed by malicious HTML. This file will pass verification of the\nlibrary that Django uses for <a class=\"reference internal\" href=\"/ja/2.0/ref/models/fields/#django.db.models.ImageField\" title=\"django.db.models.ImageField\"><code class=\"xref py py-class docutils literal notranslate\">ImageField</code></a> image\nprocessing (Pillow). When this file is subsequently displayed to a\nuser, it may be displayed as HTML depending on the type and configuration of\nyour web server.</p>\n<p>No bulletproof technical solution exists at the framework level to safely\nvalidate all user uploaded file content, however, there are some other steps\nyou can take to mitigate these attacks:</p>\n<ol class=\"arabic simple\">\n<li><p>One class of attacks can be prevented by always serving user uploaded\ncontent from a distinct top-level or second-level domain. This prevents\nany exploit blocked by <a class=\"reference external\" href=\"https://en.wikipedia.org/wiki/Same-origin_policy\">same-origin policy</a> protections such as cross\nsite scripting. For example, if your site runs on <code class=\"docutils literal notranslate\">example.com</code>, you\nwould want to serve uploaded content (the <a class=\"reference internal\" href=\"/ja/2.0/ref/settings/#std-setting-MEDIA_URL\"><code class=\"xref std std-setting docutils literal notranslate\">MEDIA_URL</code></a> setting)\nfrom something like <code class=\"docutils literal notranslate\">usercontent-example.com</code>. It's <em>not</em> sufficient to\nserve content from a subdomain like <code class=\"docutils literal notranslate\">usercontent.example.com</code>.</p></li>\n<li><p>Beyond this, applications may choose to define a whitelist of allowable\nfile extensions for user uploaded files and configure the web server\nto only serve such files.</p></li>\n</ol>\n</li>\n</ul>\n</section>\n<section id=\"additional-security-topics\">\n<span id=\"id2\"></span><h2>Additional security topics<a class=\"heading-anchor\" href=\"#additional-security-topics\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>While Django provides good security protection out of the box, it is still\nimportant to properly deploy your application and take advantage of the\nsecurity protection of the Web server, operating system and other components.</p>\n<ul class=\"simple\">\n<li><p>Make sure that your Python code is outside of the Web server's root. This\nwill ensure that your Python code is not accidentally served as plain text\n(or accidentally executed).</p></li>\n<li><p>Take care with any <a class=\"reference internal\" href=\"/ja/2.0/ref/models/fields/#file-upload-security\"><span class=\"std std-ref\">user uploaded files</span></a>.</p></li>\n<li><p>Django does not throttle requests to authenticate users. To protect against\nbrute-force attacks against the authentication system, you may consider\ndeploying a Django plugin or Web server module to throttle these requests.</p></li>\n<li><p>Keep your <a class=\"reference internal\" href=\"/ja/2.0/ref/settings/#std-setting-SECRET_KEY\"><code class=\"xref std std-setting docutils literal notranslate\">SECRET_KEY</code></a> a secret.</p></li>\n<li><p>It is a good idea to limit the accessibility of your caching system and\ndatabase using a firewall.</p></li>\n<li><p>Take a look at the Open Web Application Security Project (OWASP) <a class=\"reference external\" href=\"https://www.owasp.org/index.php/Top_10_2013-Top_10\">Top 10\nlist</a> which identifies some common vulnerabilities in web applications. While\nDjango has tools to address some of the issues, other issues must be\naccounted for in the design of your project.</p></li>\n</ul>\n</section>","rootId":"security-in-django","toc":[{"title":"クロス・サイト・スクリプティング (XSS) の防御","anchor":"cross-site-scripting-xss-protection","children":[]},{"title":"クロス・サイト・リクエスト・フォージェリ(CSRF)の防御","anchor":"cross-site-request-forgery-csrf-protection","children":[]},{"title":"SQL injectionへの防御","anchor":"sql-injection-protection","children":[]},{"title":"Clickjacking に対する防御","anchor":"clickjacking-protection","children":[]},{"title":"SSL/HTTPS","anchor":"ssl-https","children":[]},{"title":"Host ヘッダーの検証","anchor":"host-header-validation","children":[]},{"title":"セッションのセキュリティ","anchor":"session-security","children":[]},{"title":"ユーザーがアップロードしたコンテンツ","anchor":"user-uploaded-content","children":[]},{"title":"Additional security topics","anchor":"additional-security-topics","children":[]}],"breadcrumbs":[{"docname":"topics/index","title":"Django を使う","url":"/ja/2.0/topics/"}],"prev":{"docname":"topics/pagination","title":"ページネーション","url":"/ja/2.0/topics/pagination/"},"next":{"docname":"topics/performance","title":"パフォーマンスと最適化","url":"/ja/2.0/topics/performance/"},"formats":{"html":"/ja/2.0/topics/security/","markdown":"/ja/2.0/topics/security.md","json":"/ja/2.0/topics/security.json"},"source":"https://github.com/django/django/blob/stable/2.0.x/docs/topics/security.txt","official":"https://docs.djangoproject.com/ja/2.0/topics/security/","inVersions":["6.1","6.0","5.2","5.1","5.0","4.2","4.1","4.0","3.2","3.1","3.0","2.2","2.1","2.0","1.11","1.10","1.9"],"inLocales":["en","zh-hans","fr","ja","id","pt-br","ko","es","el","pl"]}