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


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


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

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

ÀÛ¼ºÀÚ : ±èÄ¥ºÀ <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. 27.  Àüü±Û: 109  ¹æ¹®¼ö: 61751
45 [Perl] ¼­¹ö ÅëÇÕ ÈÄ Àß µ¹´ø perl °Ô½ÃÆÇÀÌ ÀÎÅͳμ­¹ö¿¡·¯°¡ ³¯ ¶§  2005.06.24.421
44 Æнº¿öµå Å©·¢ Åø John the Ripper  2005.06.10.1064
43 [ÇØÅ·] psybnc? eggdrop?  2005.06.08.821
42 [±â»ç] ¿ÀǼҽº ½ºÆÔ SWÀÇ Áø¼ö¡¸½ºÆÔ¾î½Ø½Å¡¹  2005.06.03.358
41 make: *** [ext/standard/microtime.lo] ¿À·ù  2005.05.25.445
40 [Tip] ¸®´ª½º ½Ã½ºÅÛ¿¡¼­ ¿¡·¯°¡ Çѱ۷Π³ª¿Ã ¶§  2005.03.08.350
39 [Tip] hdparmÀ» ÀÌ¿ëÇÏ¿© ÇÏµå µð½ºÅ© ¼Óµµ Çâ»ó½ÃÅ°±â  2005.01.28.1149
83 ILEEQENYSivLKCDZw  2011.10.27.330
38 È¨ÆäÁã À§º¯Á¶ ¹æÁö ±³À°  2004.11.11.380
37 test  2004.11.11.358
36 [¾ÆÆÄÄ¡] ½Ã½ºÅÛ°ü¸®ÀÚ¸¦ À§ÇÑ ½Ã½ºÅÛÀå¾Ö¿Í ´ëó¹ý(1) - ¾ÆÆÄÄ¡  2004.11.02.2198
96 PjRPbInBgCTS  2014.06.29.302
35 [º¸¾È] iptables »ç¿ë¹ý  2004.10.28.359
34 [¸®´ª½º] vi ¸ðµå¿¡¼­ ÇѱÛÀÌ ±úÁ® º¸ÀÏ ¶§  2004.08.20.348
33 [¾ÆÆÄÄ¡] 404 µî ¿¡·¯ ÆäÀÌÁö ¼öÁ¤ ¹æ¹ý  2004.08.20.349
32 [¾ÆÆÄÄ¡] access ·Î±×¿¡ µµ¸ÞÀÎ¸í ³²°Ô ÇÏ±â  2004.08.16.350
31 [TIP} ½© »ó¿¡¼­( vi ¿¡¼­)ÇѱÛÀÌ ±úÁ® º¸ÀÏ ¶§  2004.08.10.357
30 [°æÇè] .forward ¸¦ ¼³Á¤Çߴµ¥µµ ¸ÞÀÏ Æ÷¿öµùÀÌ ¾È µÉ ¶§  2004.07.30.351
29 [¾ÆÇÇÄ¡] ·Î±× ÆÄÀÏ - ƯÁ¤ Çü½ÄÀÇ ÆÄÀÏ ·Î±×¸¦ µû·Î ³²±â°Å³ª ³²±âÁö ¾Ê±â  2004.07.24.1189
28 [TIP] ¿©·¯°¡Áö Æ÷¿öµù ¹æ½Ä  2004.07.24.457
27 [¾ÆÆÄÄ¡] ¹«´Ü ¸µÅ© ¹æÁö  2004.06.29.315
26 [TIP] SYN Flooding ÇØ°áÃ¥  2004.06.28.368
25 [TIP] À¯Àú ±ÇÇÑ ¹× ±×·ì ±ÇÇÑ ÀÏ°ý º¯°æÇÏ±â  2004.06.14.361
24 [TIP] ´ë¹®ÀÚ ¾ÆÀ̵ð Ãß°¡ ¾È µÉ ¶§  2004.03.11.370
23 [MySQL] MySQL ¸í·É¾î ¸ðÀ½  2004.02.21.499
22 [TIP] ¼­¹ö °ü¸®¿ë ¸í·É¾î ¸ðÀ½  2004.02.18.350
82 RZliYGRoRwSmt  2011.10.26.320
21 [Á¤º¸] ÃÖ±Ù ¶ß´Â mrtg ´ë¿ë, ±¹³»»ê rrdbelt  2004.02.18.436
20 [named] lame server ·Î±× ³²Áö ¾Ê°Ô Á¶Á¤  2003.11.17.398
19 [¾ÆÆÄÄ¡] php ÆÄÀÏÀÌ ¿­¸®Áö ¾Ê°í ´Ù¿î·Îµå âÀÌ ¿­¸± ¶§  2003.09.26.681
RELOAD WRITE
[1] [2] 3 [4] 





Copyright¨Ï 2002 RUBICON