리눅스 .htaccess 특정 IP 차단: Revision history

From IT Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

    1 May 2024

    • curprev 14:2614:26, 1 May 2024계발자 talk contribs 466 bytes +466 새 문서: 2가지 방법을 이용할 수 있다. === 단순 차단 (403 처리) === <syntaxhighlight lang="bash" line="1"> <RequireAll> Require all granted Require not ip 123.123.123.123 </RequireAll> </syntaxhighlight> === 특정 페이지로 넘기기 === <syntaxhighlight lang="bash" line="1"> RewriteCond %{HTTP:X-FORWARDED-FOR} ^123.123.123.123$ [OR] RewriteCond %{REMOTE_ADDR} ^123.123.123.123$ RewriteRule !blocked.php$ /blocked.php [L,R=301] </syntaxhighlight> Tag: Visual edit