example.comというサイトで、直リンクを設定する場合。
.htaccess
SetEnvIf Referer "^http://test\.com" Showok
SetEnvIf Referer "^https://test\.com" Showok
order deny,allow
deny from all
allow from env=Showok
注意:ドメイン名の「.」の前には、「\」(←化けちゃってるけど、半角「¥」マーク)を必ず入れる。
それゆけ!プログラマ
example.comというサイトで、直リンクを設定する場合。
SetEnvIf Referer "^http://test\.com" Showok
SetEnvIf Referer "^https://test\.com" Showok
order deny,allow
deny from all
allow from env=Showok
注意:ドメイン名の「.」の前には、「\」(←化けちゃってるけど、半角「¥」マーク)を必ず入れる。
©2014 - 2025 sakura*sakura.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |