¿¹Àü Á¦·Îº¸µåÀÇ ÆÄÀϾ÷·Îµå Ãë¾àÁ¡À» ÀÌ¿ëÇÏ¿© ¾ßµ¿»çÀÌÆ®¿¡¼ Àâ´ÙÇÑ ÆÄÀÏÀ» ¿Ã·Á³õÀº °ÍÀÌ ÀÖ½À´Ï´Ù. ÀÌ·± °ÍµéÀÌ È®´ë°¡ µÇ¾î ·¹ÆÛ·²¿¡ ¿Â°® ¾ßµ¿»çÀÌÆ®°¡ ¸¹¾Æ¼ ÀÌ°Í Ã³¸®ÇÏ´À¶ó ¸Ó¸®°¡ ¾ÆÆʹµ¥¿ä. ¿©±â¿¡´Ù°¡ À¥·Î±×ºÐ¼®¿¡ ·¹ÆÛ·¯¿¡ ÀÚ±â³× »çÀÌÆ®µéÀÌ ±â·ÏÀÌ ³²À¸´Ï ¶Ç ÀÌ°ÍÀ» ÅëÇØ È®´ë°¡ µÇ±¸¿ä.
¾ÆÆÄÄ¡¿¡¼´Â ÀÌ·±°ÍµéÀ» SetEnvIf ÀÌ¿ëÇÏ¿© ó¸®ÇÒ ¼ö ÀÖ½À´Ï´Ù.
Ãâó : http://httpd.apache.org/docs/1.3/env.html
·¹ÆÛ·²ÀÌ www.example.com ¾Æ´Ñ »çÀÌÆ®¿¡¼ /web/images µð·ºÅ丮¿¡ Á¢±ÙÇÏ´Â °ÍÀ» ¸·´Â °ÍÀÔ´Ï´Ù.
Prevent "Image Theft"
This example shows how to keep people not on your server from using images on your server as inline-images on their pages. This is not a recommended configuration, but it can work in limited circumstances. We assume that all your images are in a directory called /web/images.
SetEnvIf Referer "^http://www.example.com/" local_referal # Allow browsers that do not send Referer info SetEnvIf Referer "^$" local_referal Order Deny,Allow Deny from all Allow from env=local_referal
Ãâó : http://httpd.apache.org/docs/1.3/mod/mod_setenvif.html#setenvif
SetEnvIf ¿¡¼ »ç¿ëÇÒ ¼ö Àִ°ÍÀº ¾Æ·¡¿Í °°½À´Ï´Ù. Remote_Host - the hostname (if available) of the client making the request Remote_Addr - the IP address of the client making the request Request_Method - the name of the method being used (GET, POST, et cetera) Request_Protocol - the name and version of the protocol with which the request was made (e.g., "HTTP/0.9", "HTTP/1.1", etc.) Request_URI - the portion of the URL following the scheme and host portion
|
|