·Î±×ÀÎ
¾ÆÀ̵ð
¾Ï   È£
ȸ¿ø°¡ÀÔ   ¾ÏÈ£ºÐ½Ç
¬á¬â¬à¬ã¬ä¬Ú¬ä¬å¬ä¬Ü¬Ú, ¬Õ¬à¬ã¬å¬Ô, ¬Ú¬ß¬Õ¬Ú¬Ó¬Ú¬Õ¬å¬Ñ¬Ý¬Ü¬Ú, ¬Ú¬ß¬ä¬Ú¬Þ http://youdosug.com - ¬á¬â¬à¬ã¬ä¬Ú¬ä¬å¬ä¬Ü¬Ú, ¬Õ¬à¬ã¬å¬Ô, ¬Ú¬ß¬Õ¬Ú¬Ó¬Ú¬Õ¬å¬Ñ¬Ý¬Ü¬Ú, ¬Ú¬ß¬ä¬Ú¬Þ
  Home
  ²ôÀû²ôÀû
  ¸®´ª½º
  ¼îÇθô
  °ÔÀÓ
  ¾Æ¹ÙŸ¼¥
  ¾Æ¹ÙŸ°ü¸®ÀÚ
  HTML ±³À° ¿¹Á¦1
  HTML ±³À° ¿¹Á¦2
  Å×½ºÆ®ÆäÀÌÁö


¸®´ª½º Tech °Ô½ÃÆÇ


ADMIN 2024. 04. 26.
 [¾ÆÇÇÄ¡] ·Î±× ÆÄÀÏ - ƯÁ¤ Çü½ÄÀÇ ÆÄÀÏ ·Î±×¸¦ µû·Î ³²±â°Å³ª ³²±âÁö ¾Ê±â
  ³¯Â¥: 2004.07.24. 10:25:56   Á¶È¸: 1187
[Á¦¸ñ] ¾ÆÆÄÄ¡ ·Î±× ÆÄÀÏ - ƯÀÌÇÑ ³à¼®µéÀº µû·Î ´ã°Å³ª ¾ø¾Ö±â

* Á¦¸ñÀÌ Á» ÀÌ»óÇϳ׿ä........^.^

ÀÛ¼ºÀÚ : ±èÄ¥ºÀ <san2(at)linuxchannel.net>
ÀÛ¼ºÀÏ : 2001. 04. 30
´ë»óÀÚ : Ãʺ¸

- ÈùÆ® URL : ÀÓÀºÀç´ÔÀÌ ¾´ ±ÛÀ» º¸°í ³ª¼­
http://kltp.kldp.org/stories.php?story=00/10/22/9724184

- °ü·Ã ¹®¼­ : ¾ÆÆÄÄ¡ Á¦°ø ¹®¼­
http://httpd.apache.org/docs/mod/mod_log_config.html
http://httpd.apache.org/docs/mod/mod_setenvif.html


¸ñÂ÷

1. ¹è°æ

2. ±âÃÊÁö½Ä
2-1. ·Î±×Æ÷¸Ë°ú CustomLog Áö½ÃÀÚ
2-2. ¾ÆÆÄÄ¡ ȯ°æº¯¼ö ¼³Á¤

3. ¿¹Á¦
3-1. ƯÁ¤ IP ÁÖ¼Ò¸¸ ȯ°æº¯¼ö·Î ¼³Á¤Çϱâ
3-2. ƯÁ¤ ŸÀÔÀÇ ÆÄÀϸ¸ ȯ°æº¯¼ö·Î ¼³Á¤Çϱâ
3-3. ƯÁ¤ User-Agent ¸¸ ȯ°æº¯¼ö·Î ¼³Á¤Çϱâ
3-4. Á¾ÇÕ¿¹Á¦ : »ç¿ÀÁ¤(?) ·Î±× ºÐ¼® ÇÇÇϱâ

------------------------------------------

1. ¹è°æ

¸î ´Þ ÀüºÎÅÍ Webalizer ¶ó´Â ·Î±× ºÐ¼®±â·Î Á¦°¡(ÀÌÇÏ 'ÇÊÀÚ') ¿î¿µÇÏ´Â ½ÎÀÌÆ®ÀÇ
·Î±×¸¦ ´ëÃæ ºÐ¼®(?)ÇØ ºÃ´Âµ¥ »ç¿ÀÁ¤(?) ºÐ¼®ÀÌ µÇ¾î ¹ö·È´õ±º¿ä.
°áÁ¤ÀûÀ¸·Î ÇÊÀÚ°¡ ¿î¿µÇÏ´Â ½ÎÀÌÆ®ÀÇ ´ëºÎºÐÀº php·Î ±¸¼ºµÇ¾î Àִµ¥, ÀÌ´Â ½ÇÁ¦·Î

- ¹æ¹®ÀÚ ¿Ü¿¡ localhost¿¡¼­ php°¡ ½ÇÇàÇÏ´Â ·Î±× ±â·Ï
- ·Îº¿µéÀÇ Á¢±Ù ±â·Ï
- ¿î¿µÀÚ(ÇÊÀÚ)°¡ Á¢±ÙÇÑ ·Î±× ±â·Ï

µîµîÀÌ ÇÔ²² ±â·ÏµÇ¾î ÀÖ¾î ¼ø¼ö ¹æ¹®ÀÚ Åë°è¿¡ ¾à°£ ´ú(?) Á¤È®ÇÑ Åë°è°¡ ³ª¿À´õ±º¿ä.
µû¶ó¼­ ÀÌ·± À¯ÇüµéÀÇ ·Î±×´Â ¾ø¾Ö°Å³ª µû·Î ·Î±×±â·ÏÇÏ´Â °ÍÀÌ ³´À» °Í °°´õ±º¿ä.

À§ÀÇ ³»¿ëÀÌ ÀÌÇÏ ´Ù·ç´Â ³»¿ëÀÔ´Ï´Ù.


2. ±âÃÊÁö½Ä

2-1. ·Î±×Æ÷¸Ë°ú CustomLog Áö½ÃÀÚ

Module mod_log_config Àº ¾ÆÆÄÄ¡ ±âº» ¸ðµâÀÔ´Ï´Ù.

·Î±× Æ÷¸Ë ½ºÆ®¸µ

%a : ¿ø°ÝÀÇ IP ÁÖ¼Ò
%b : Çì´õ¸¦ Æ÷ÇÔÇÑ Àü¼Û·®(bytes)
%{var}e : ȯ°æ º¯¼ö "var"
%f : ÆÄÀÏÀ̸§
%h : ¿ø°ÝÀÇ È£½ºÆ®
%{hdr}i : ¼­¹ö¿¡ µé¾î¿À´Â(¿äû) Çì´õ °ª "hdr"
%l : ¿ø°ÝÀÇ ·Î±×ÀÎ ID(Áö¿øÇÑ´Ù¸é)
%{label}n : ´Ù¸¥ ¸ðµâ¿¡¼­ "label" ±¸¼º
%{hdr}o : ÀÀ´ä Çì´õ °ª "hdr"
%p : ¼­¹öÀÇ Canonical Æ÷Æ® ¹øÈ£
%P : ÀÚ½Ä ÇÁ·Î¼¼½º ID(PID)
%r : ù¹ø° ¿äû ¶óÀÎ
%s : »óÅÂÄÚµå
%t : ½Ã°£ Æ÷¸Ë(CLF Æ÷¸Ë)
%{format}t : "format"À¸·Î ±¸¼ºµÈ ½Ã°£ Æ÷¸Ë
%T : ¼­¹ö¿¡ ¿äûÇÏ´Â ½Ã°£(ÃÊ)
%u : ¿ø°ÝÀÇ À¯ÀúÀ̸§(ÀÎÁõ½Ã)
%U : ¿äûÇÑ URL
%v : Ŭ¶óÀ̾ðÆ® ¿äû¿¡ µû¸¥ Canonical ¼­¹ö³×ÀÓ
%V : UseCanonicalName ¼³Á¤¿¡ µû¸¥ ¼­¹ö³×ÀÓ

ÀϹÝÀûÀ¸·Î ¾ÆÆÄÄ¡¸¦ ¼³Ä¡ÇÏ°í ³ª¸é, ´ÙÀ½°ú °°ÀÌ ±âº»¼³Á¤µÇ¾î ÀÖÀ» °Ì´Ï´Ù.
(±»Áö ¼öÁ¤ÇÒ ÇÊ¿ä¾øÀ½)

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

CustomLog /usr/local/apache/logs/access_log common

¹°·Ð ÀÌ Á¤µµ´Â ´Ù ¾Ë°í °è½Ã¸®¶ó ¹Ï½À´Ï´Ù.

·Î±× ±â·Ï Áö½ÃÀÚ

CookieLog
CustomLog
LogFormat
TransferLog

CookieLogs´Â Á¦¿ÜÇÏ°í ³ª¸ÓÁö Áö½ÃÀÚ¿¡ ´ëÇؼ­ ¾Ë¾Æº¾½Ã´Ù.

LogFormat Áö½ÃÀÚ

Syntax: LogFormat format|nickname [nickname]
Default: LogFormat "%h %l %u %t \"%r\" %>s %b"
Context: server config, virtual host
Status: Base
Compatibility: Nickname only available in Apache 1.3 or later
Module: mod_log_config


CustomLog Áö½ÃÀÚ

Syntax: CustomLog file|pipe format|nickname [env=[!]environment-variable]
Context: server config, virtual host
Status: Base
Compatibility: Nickname only available in Apache 1.3 or later.
Conditional logging available in 1.3.5 or later.
Module: mod_log_config


TransferLog Áö½ÃÀÚ

Syntax: TransferLog file|pipe
Default: none
Context: server config, virtual host
Status: Base
Module: mod_log_config

LogFormat Áö½ÃÀÚ´Â ¾Õ¿¡¼­ ¿¹Á¦°¡ ÀÖÀ¸¹Ç·Î »ý·«ÇÏ°í ºñ½ÁÇÑ ±â´ÉÀ» °¡Áø
CustomLog, TransferLog ÁöÁöÀÚ¿¡ ´ëÇؼ­ Àá±ñ ¾Ë¾Æº¾½Ã´Ù.

µÑ´Ù file ¿¡ ·Î±×¸¦ ±â·ÏÇÑ´Ù´Â ¸é¿¡¼­´Â µ¿ÀÏÇÑ ±â´ÉÀÔ´Ï´Ù.(pipe ±â´Éµµ µ¿ÀÏ)

°°ÀºÁ¡

1. µÑ´Ù file¿¡ ·Î±×¸¦ ±â·ÏÇÑ´Ù.
2. |pipe ¿¡ ¼³Á¤ÇÑ ¿ÜºÎ ÇÁ·Î±×·¥À» ÀÎÀÚ·Î »ç¿ëÇÒ ¼ö ÀÖ´Ù.
3. µÑ´Ù ´ÙÁß ·Î±×¸¦ »ç¿ëÇÒ ¼ö ÀÖ´Ù.

´Ù¸¥Á¡

1. CustomLog Áö½ÃÀÚ´Â LogFormat Áö½ÃÀÚ¿¡¼­ ¼³Á¤ÇÑ nicknameÀ̳ª Log formatÀ»
ÀÎÀÚ·Î »ç¿ëÇÒ ¼ö ÀÖ´Ù.
2. CustomLog Áö½ÃÀڴ ȯ°æº¯¼ö¸¦ ÀÎÀÚ·Î °¡Áú ¼ö ÀÖ´Ù.


µû¶ó¼­,
ÀÌÇÏ ´Ù·ê ³»¿ëÀº ȯ°æº¯¼ö¸¦ ¼³Á¤ÇÏ°í ÀÌ È¯°æº¯¼ö(env)¿Í µ¿ÀÏ(=)Çϰųª ±×·¸Áö ¾ÊÀº(!=)
ƯÁ¤ À¯Çü¿¡ ´ëÇؼ­ ·Î±×¿¡ ±â·ÏÇؾßÇÏ ÇϹǷΠ´ç¿¬È÷ CustomLog Áö½ÃÀÚ¸¦ »ç¿ëÇؾß
ÇÕ´Ï´Ù.

*ÁÖÀÇ)
ȯ°æº¯¼ö¸¦ ÀÎÀÚ·Î »ç¿ëÇÒ °æ¿ì Çϳª¸¸ °¡´É.

ÀÌÇØ°¡ µÇ¼Ì´ÂÁö ¸ð¸£°Ú³×¿ä....


2-2. ¾ÆÆÄÄ¡ ȯ°æº¯¼ö ¼³Á¤

¾ÆÆÄÄ¡¿¡¼­ ȯ°æº¯¼ö¸¦ ¼³Á¤ÇÏ´Â ¹æ¹ýÀº ¸î°¡Áö ÀÖ½À´Ï´Ù.
¿¹¸¦ µé¾î,

- mod_env ¸ðµâ¿¡ ÀÇÇÑ
SetEnv
Áö½ÃÀÚ ÀÌ¿ë

- mod_setenvif ¸ðµâ¿¡¿¡ ÀÇÇÑ
BrowserMatch
BrowserMatchNoCase
SetEnvIf
SetEnvIfNoCase
Áö½ÃÀÚ ÀÌ¿ë

µîÀÌ ÀÖ½À´Ï´Ù.
¿©±â¿¡¼­ ÁÖ·Î »ç¿ëÇÒ Áö½ÃÀÚ´Â BrowserMatch Áö½ÃÀÚ¿Í SetEnvIf Áö½ÃÀÚÀÔ´Ï´Ù.

*Âü°í)
xxxxNoCase Áö½ÃÀÚ´Â ´ë¼Ò¹®ÀÚ¸¦ ±¸ºÐÇÏÁö ¾Ê°Ú´Ù´Â ÀǹÌÀÔ´Ï´Ù.

ÀÌ µÎ°³ÀÇ Áö½ÃÀÚ¿¡ ´ëÇÑ »ç¿ë¹ý¸¸ °£´ÜÇÏ°Ô ¾Ë¾Æº¾½Ã´Ù.

BrowserMatch Áö½ÃÀÚ

Syntax: BrowserMatch regex envar[=value] [envar[=value]] ...
Default: none
Context: server config, virtual host, directory, .htaccess
Override: FileInfo
Status: Base
Module: mod_setenvif
Compatibility: Apache 1.2 and above (in Apache 1.2 this directive was found in the
now-obsolete mod_browser module); use in .htaccess files only supported with
1.3.13 and later


SetEnvIf Áö½ÃÀÚ

Syntax: SetEnvIf attribute regex envar[=value] [envar[=value]] ...
Default: none
Context: server config, virtual host, directory, .htaccess
Override: FileInfo
Status: Base
Module: mod_setenvif
Compatibility: Apache 1.3 and above; the Request_Protocol keyword and environment-variable
matching are only available with 1.3.7 and later; use in .htaccess files only supported
with 1.3.13 and later

ȯ°æº¯¼ö ÁöÁ¤ ¹× °ª ÁöÁ¤ ¹æ¹ý

1.varname, or
2.!varname, or
3.varname=value

¿¹ :

BrowserMatch ^Mozilla forms jpeg=yes browser=netscape
BrowserMatch "^Mozilla/[2-3]" tables agif frames javascript
BrowserMatch MSIE !javascript

BrowserMatchNoCase Robot is_a_robot
SetEnvIfNoCase User-Agent Robot is_a_robot

BrowserMatchNoCase mac platform=macintosh
BrowserMatchNoCase win platform=windows

SetEnvIf Request_URI "\.gif$" object_is_image=gif
SetEnvIf Request_URI "\.jpg$" object_is_image=jpg
SetEnvIf Request_URI "\.xbm$" object_is_image=xbm
:
SetEnvIf Referer www\.mydomain\.com intra_site_referral
:
SetEnvIf object_is_image xbm XBIT_PROCESSING=1

SetEnvIfNoCase Host Apache\.Org site=apache

SetEnvIf ÁöÀÚÀÚ¿¡¼­ attribute ¿¡ ¿Ã ¼ö ÀÖ´Â °Íµé :

Remote_Host - the hostname (if available) of the client making the request
Remote_Addr - the IP address of the client making the request
Remote_User - the authenticated username (if available)
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
±×¿Ü
Host, User-Agent, and Referer °¡´É

see http://www.rfc-editor.org/rfc/rfc2616.txt

µû¶ó¼­,
BrowserMatch¿Í SetEnvIf User-Agent ´Â ¼­·Î µ¿ÀÏÇÏ´Ù´Â °ÍÀ» ¾Ë ¼ö ÀÖÀ» °Ì´Ï´Ù.

*Áß¿ä)
CustomLog ÁöÀÚÀÚ¿Í ´Ù¸£°Ô ȯ°æº¯¼ö ÀÎÀÚ¿¡ ¿©·¯ °³¸¦ ¼³Á¤ÇÒ ¼ö ÀÖÀ½.

¿©±â±îÁö ÀÌÇØ°¡ µÇ¼Ì´Ù¸é ´ÙÀ½Àº º¸Áö ¾Ê¾Æµµ µÉµí Çϱº¿ä.......^.^


3. ¿¹Á¦

3-1. ƯÁ¤ IP ÁÖ¼Ò¸¸ ȯ°æº¯¼ö·Î ¼³Á¤Çϱâ

- ȯ°æº¯¼ö À̸§ : do_not_log
- ¸ñÀû : ÀÌ È¯°æº¯¼ö¿¡ ÇØ´çµÇ´Â ƯÁ¤ IP ÁÖ¼Ò´Â access_log¿¡ ±â·ÏÇÏÁö ¾Ê´Â´Ù.

SetEnvIf Remote_Addr "^127.0.0.1$" do_not_log
SetEnvIf Remote_Addr "^211.35.159.12[89]$" do_not_log
SetEnvIf Remote_Addr "^211.35.159.1[345][0-9]$" do_not_log

À§¿¡¼­ ¼³Á¤ÇÑ Æ¯Á¤ IP ÁÖ¼Ò´Â
127.0.0.1 ÀÚ±âÀÚ½ÅÀ» ¸»ÇÏ´Â ·çÇÁ¹é ÁÖ¼Ò
211.35.159.128, 211.35.159.129 µÎ°³ÀÇ IP ÁÖ¼Ò
211.35.159.130 ~ 211.35.159.139 10°³ÀÇ IP ÁÖ¼Ò
211.35.159.140 ~ 211.35.159.149 10 °³ÀÇ IP ÁÖ¼Ò
211.35.159.150 ~ 211.35.159.159 10 °³ÀÇ IP ÁÖ¼Ò

Áï ¿ø°ÝÀÇ IP ÁÖ¼Ò(Remote_Addr)°¡ À§¿Í ÀÏÄ¡Çϸé do_not_log ȯ°æº¯¼ö¿¡ ÁöÁ¤ÇÏ´Â ¿¹ÀÓ.

*Âü°í)
^ Àº ½ÃÀÛÀ» ÀǹÌ
$ Àº ¸¶Áö¸·À» ÀǹÌ
[0-9] 0~9±îÁöÀÇ ¼ýÀÚÁß ¾î´À Çϳª


3-2. ƯÁ¤ ŸÀÔÀÇ ÆÄÀϸ¸ ȯ°æº¯¼ö·Î ¼³Á¤Çϱâ

SetEnvIfNoCase Request_URI "\.(gif|jpg|png|css|js|java)$" do_not_log

¿äû URI(Request_URI) ÆÄÀÏÀÌ
*.gif
*.jpg
*.png
*.css
*.js
*.java

·Î ³¡³­ ÆÄÀÏÀÎ °æ¿ì(´ë¼Ò¹®ÀÚ¸¦ ±¸º°ÇÏÁö ¾ÊÀ½) do_not_log ȯ°æº¯¼ö¿¡ ÁöÁ¤ÇÔ


3-3. ƯÁ¤ User-Agent ¸¸ ȯ°æº¯¼ö·Î ¼³Á¤Çϱâ

- ȯ°æº¯¼ö À̸§ : do_not_log °ú is_a_robot
- ¸ñÀû : ÀÌ È¯°æº¯¼ö¿¡ ÇØ´çµÇ´Â ƯÁ¤ User-Agent´Â access_log¿¡ ±â·ÏÇÏÁö ¾Ê°í,
µû·Î ·Î±×(robot-log)¿¡ ±â·ÏÇϰųª ±â·ÏÇÏÁö ¾Ê±â À§ÇÔ.

BrowserMatchNoCase "ru-robot" do_not_log is_a_robot
BrowserMatchNoCase "Slurp/si" do_not_log is_a_robot
BrowserMatchNoCase "Mercator" do_not_log is_a_robot
BrowserMatchNoCase "Gulliver" do_not_log is_a_robot
BrowserMatchNoCase "SyncIT/" do_not_log is_a_robot
BrowserMatchNoCase "FAST-WebCrawler" do_not_log is_a_robot
BrowserMatchNoCase "Lycos_Spider" do_not_log is_a_robot
BrowserMatchNoCase "^ia_archive" do_not_log is_a_robot
BrowserMatchNoCase "^tv" do_not_log is_a_robot
BrowserMatchNoCase "Scooter" do_not_log is_a_robot
BrowserMatchNoCase "ZyBorg/" do_not_log is_a_robot
BrowserMatchNoCase "KIT-Fireball" do_not_log is_a_robot
BrowserMatchNoCase "Googlebot/" do_not_log is_a_robot
BrowserMatchNoCase "DIIbot/" do_not_log is_a_robot
BrowserMatchNoCase "teoma_agent3" do_not_log is_a_robot
BrowserMatchNoCase "empas_robot" do_not_log is_a_robot

¸ðµÎ ·Îº¿À¸·Î ¸Â°Ô ¼³Á¤µÇ¾ú´ÂÁö ¸ð¸£°Ú³×¿ä...............T.T

°¢°¢ÀÇ Á¤±ÔÇ¥Çö½Ä Á¶°Ç¿¡ ¸Â´Â User-Agent ÀÎ °æ¿ì, do_not_log ȯ°æº¯¼ö¿Í
is_a_robot À̶ó´Â µÎ°³ÀÇ È¯°æº¯¼ö¿¡ ¼³Á¤ÇÑ ¿¹ÀÔ´Ï´Ù.
is_a_robot À̶ó°í ¶Ç ÇϳªÀÇ È¯°æº¯¼ö¸¦ ÁöÁ¤ÇÑ ÀÌÀ¯´Â ¾Õ¼­ ¾ê±âÇßµíÀÌ
ÀÌ Á¶°Ç°Ô ¸Â´Â User-Agent°¡ Á¢±ÙÇÒ °æ¿ì µû·Î ·Î±×¿¡ ±â·ÏÇϱâ À§ÇÔÀÔ´Ï´Ù.

ÀÌ BrowserMatchNoCase Áö½ÃÀÚ ´ë½Å¿¡ SetEnvIfNoCase User-Agent ·Î ´ë½ÅÇÒ ¼ö Àִµ¥
ù¹ø° ºÎºÐÀ» ´ÙÀ½°ú °°ÀÌ ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.(µÑ´Ù ¶È °°Àº °á°úÀÓ)

SetEnvIfNoCase User-Agent "ru-robot" do_not_log is_a_robot


3-4. Á¾ÇÕ¿¹Á¦ : »ç¿ÀÁ¤(?) ·Î±× ºÐ¼® ÇÇÇϱâ

¾ÕÀÇ 3°³ÀÇ ¿¹Á¦¸¦ ¸ðµÎ Àû¿ëÇÏ¸é ´ÙÀ½°ú °°½À´Ï´Ù.

¸ñÀûÀº ¹è°æ¿¡¼­ ¼³¸íÇßµíÀÌ °¡´ÉÇÑ access_log ÆÄÀÏ¿¡

- ¹æ¹®ÀÚ ¿Ü¿¡ localhost¿¡¼­ php°¡ ½ÇÇàÇÏ´Â ·Î±× ±â·ÏÀº ±â·ÏÇÏÁö ¾Ê´Â´Ù.
- ·Îº¿µéÀÇ Á¢±Ù ±â·ÏÀº µû·Î robot-log ÆÄÀÏ¿¡ ±â·ÏÇÑ´Ù.
- ¿î¿µÀÚ°¡ ÁÖ°í Á¢±ÙÇÒ IP ÁÖ¼Ò´Â ·Î±×¿¡ ±â·ÏÇÏÁö ¾Ê´Â´Ù.
- *.gif, *.jpg, *.png, *.css, *.js, *.java µî°ú °°Àº ÆÄÀÏÀº ·Î±×¿¡ ±â·ÏÇÏÁö ¾Ê´Â´Ù.

ÀÌ Á¤µµÀÇ Á¶°ÇÀ̶ó¸é °¡´ÉÇÑ ¾î´À Á¤µµ ¼öÁØÀ¸·Î ¼ø¼ö ¹æ¹®ÀÚÀÇ Á¢±Ù ±â·Ï¸¸
access_log ÆÄÀÏ¿¡ ±â·ÏÇÒ ¼ö ÀÖ½À´Ï´Ù.

-- httpd.conf(½ÇÁ¦·Î ÇÊÀÚ°¡ ¿î¿µÇÏ´Â ¾ÆÆÄÄ¡ ¼³Á¤ ³»¿ëÀÓ) --------------------
##
## Áß°£ »ý·«
##
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{User-Agent}i\"" use_robot
##
## Áß°£ »ý·«
##

## ȯ°æº¯¼ö do_not_log¿¡ ÀÏÄ¡ÇÏÁö ¾ÊÀº Á¢±Ù¸¸ access_log ÆÄÀÏ¿¡ ±â·ÏÇÔ.
##
CustomLog /usr/local/apache/logs/access_log combined env=!do_not_log

## Áß°£ »ý·«

## ·Îº¿µéÀº µû·Î robot_log ÆÄÀÏ¿¡ user_robot Æ÷¸Ë¿¡ ¸Â°Ô ±â·ÏÇÔ
##
CustomLog /usr/local/apache/logs/robot_log use_robot env=is_a_robot

## Áß°£ »ý·«

## ƯÁ¤ IP ÁÖ¼Ò´Â ·Î±×¿¡ ±â·ÏÇÏÁö ¾Ê´Â´Ù.
## ÁÖ·Î ¼­¹ö IP ÁÖ¼Ò¿Í ¿î¿µÀÚ°¡ ÀÚÁÖ Á¢¼ÓÇÏ´Â IP ÁÖ¼Òµé
##
SetEnvIf Remote_Addr "^127.0.0.1$" do_not_log
SetEnvIf Remote_Addr "^211.35.159.12[89]$" do_not_log
SetEnvIf Remote_Addr "^211.35.159.1[345][0-9]$" do_not_log

## Áß°£ »ý·«

## ÁÖ·Î À̹ÌÁö ÆÄÀÏÀ» ¿äûÇßÀ» °æ¿ì ·Î±×¿¡ ±â·ÏÇÏÁö ¾Ê´Â´Ù.
##
SetEnvIfNoCase Request_URI "\.(gif|jpg|png|css|js|java)$" do_not_log

## Áß°£ »ý·«

## ·Îº¿µéÀÇ È¯°æº¯¼ö ÁöÁ¤
##
BrowserMatchNoCase "ru-robot" do_not_log is_a_robot
BrowserMatchNoCase "Slurp/si" do_not_log is_a_robot
BrowserMatchNoCase "Mercator" do_not_log is_a_robot
BrowserMatchNoCase "Gulliver" do_not_log is_a_robot
BrowserMatchNoCase "SyncIT/" do_not_log is_a_robot
BrowserMatchNoCase "FAST-WebCrawler" do_not_log is_a_robot
BrowserMatchNoCase "Lycos_Spider" do_not_log is_a_robot
BrowserMatchNoCase "^ia_archive" do_not_log is_a_robot
BrowserMatchNoCase "^tv" do_not_log is_a_robot
BrowserMatchNoCase "Scooter" do_not_log is_a_robot
BrowserMatchNoCase "ZyBorg/" do_not_log is_a_robot
BrowserMatchNoCase "KIT-Fireball" do_not_log is_a_robot
BrowserMatchNoCase "Googlebot/" do_not_log is_a_robot
BrowserMatchNoCase "DIIbot/" do_not_log is_a_robot
BrowserMatchNoCase "teoma_agent3" do_not_log is_a_robot
BrowserMatchNoCase "empas_robot" do_not_log is_a_robot

## ÀÌÇÏ »ý·«
##
------------------------------------------------------

END
LIST  MODIFY DELETE WRITE REPLY 





Àüü±Û ¸ñ·Ï 2024. 04. 26.  Àüü±Û: 109  ¹æ¹®¼ö: 61717
115 [¸®´ª½º] ij¸¯Åͼ ȮÀÎ º¯°æ  2021.11.23.144
114 ¸®´ª½º ¼­¹ö ij¸¯Åͼ º¯°æ  2021.11.05.103
113 [TIP] Å©·Ò ºê¶ó¿ìÀú¿¡¼­ http »çÀÌÆ® Á¢¼ÓÇÏ±â  2021.07.21.195
112 [À©µµ¿ì] À©µµ¿ì¿¡ ¾ÆÆÄÄ¡ ¼³Á¤  2020.10.06.131
111 [TIP] ÅèĹ ¿¡·¯ Á¤º¸ ¼û±â±â  2018.04.27.468
108 [¸®´ª½º] ¼­¹ö ½Ã°£ º¯°æ  2016.08.09.361
107 [MySQL] ±úÁø Å×À̺í Á¡°Ë ¹× º¹±¸  2016.03.14.439
106 [À©µµ¿ì] À©µµ¿ì¿¡ ¿­·Á ÀÖ´Â Æ÷Æ® È®ÀÎ ¹æ¹ý  2016.02.25.295
105 [ÄÚµù] ºê¶ó¿ìÀú ¸ðµå °íÁ¤  2016.02.23.293
104 [MySQL] Å×À̺í¸í ´ë¼Ò¹®ÀÚ ±¸ºÐ ¾ÈÇÏ±â  2016.01.27.458
103 [TIP] À©µµ¿ì7 ÀͽºÇÁ·Ñ·¯ ¸ðµç Ãß°¡ ±â´É ²ô°í ½ÇÇàÇÏ±â  2016.01.25.365
102 [À©µµ¿ì] ¿ø°Ý¿¡¼­ À©µµ¿ì Á¾·á, ÀçºÎÆà  2015.08.03.470
99 ¾Æ»çÇÁ·Î ÇÁ·ÎÅä ¼¼Æà  2014.12.18.354
95 [¸®´ª½º] tar ¸í·É¾î »ç¿ë¹ý  2014.03.05.459
94 [¸®´ª½º] ¼­¹ö ½Ã°£ ¼³Á¤ÇÏ±â  2014.02.26.452
93 [ÄÚµù] ·¹À̾î Æ˾÷ ¶ç¿ì±â  2013.12.19.645
92 [MySQL] mysql 5.6 µðºñ °èÁ¤ Ãß°¡  2013.11.21.401
91 iptables ¹æÈ­º® ¼³Á¤  2013.10.29.419
90 [TIP] ±¸±Û À¥ÆùÆ® ÀÌ¿ëÇÏ±â  2013.10.23.450
89 [¿¢¼¿] °ßÀû¼­¿¡¼­ ¼ýÀÚ·Î µÈ ±Ý¾×À» ¹®ÀÚ·Î º¯°æÇÏ´Â ¼ö½Ä  2012.11.22.453
88 [TIP] Æ˾÷â ¸µÅ©  2012.09.13.476
87 [PHP] ÆÄÀÏ ¾÷·Îµå »çÀÌÆ® Á¶Á¤  2012.08.10.451
86 [TIP] ÄíÅ° Á¤º¸ È®ÀÎ  2012.02.27.422
85 [JAVA SCRIPT] Æ˾÷â¿¡¼­ ¿ÀÇÂÇÑ À©µµ¿ì·Î ¸µÅ© °É±â  2012.02.13.716
81 GybEpmqPpkcXepkbv  2010.11.02.473
97 NZRMrpOFtqfAgDpn  2014.08.26.391
98 gFmtnqUiInCviLeE  2014.08.30.387
117 re: GybEpmqPpkcXepkbv 2022.04.10.83
80 [MAIL] imap Æ÷Æ® ¿¬°á È®ÀÎ  2010.10.21.476
79 [Tip] iconv¸¦ ÀÌ¿ëÇÑ ÆÄÀÏ Å¸ÀÔ º¯°æ  2010.10.20.431
RELOAD WRITE
1 [2] [3] [4] 





Copyright¨Ï 2002 RUBICON