<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>워드프레스 Archives - 어제와 내일의 나 그 사이의 이야기</title>
	<atom:link href="https://lycos7560.com/tag/%EC%9B%8C%EB%93%9C%ED%94%84%EB%A0%88%EC%8A%A4/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>생각의 흐름을 타고 다니며 만드는 블로그</description>
	<lastBuildDate>Thu, 16 Mar 2023 19:02:20 +0000</lastBuildDate>
	<language>ko-KR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.1</generator>

<image>
	<url>https://lycos7560.com/wp-content/uploads/2022/11/cropped-cropped-cropped-log-1-150x150-1-80x80.png</url>
	<title>워드프레스 Archives - 어제와 내일의 나 그 사이의 이야기</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>WordPress .htaccess 핫링크 방지, 리디렉션</title>
		<link>https://lycos7560.com/etc/wordpress-htaccess-%ed%95%ab%eb%a7%81%ed%81%ac-%eb%b0%a9%ec%a7%80-%eb%a6%ac%eb%94%94%eb%a0%89%ec%85%98/34021/</link>
					<comments>https://lycos7560.com/etc/wordpress-htaccess-%ed%95%ab%eb%a7%81%ed%81%ac-%eb%b0%a9%ec%a7%80-%eb%a6%ac%eb%94%94%eb%a0%89%ec%85%98/34021/#respond</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Tue, 14 Mar 2023 19:42:16 +0000</pubDate>
				<category><![CDATA[기타]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[hot-link prevention]]></category>
		<category><![CDATA[redirection]]></category>
		<category><![CDATA[RewriteEngine]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[리디렉션]]></category>
		<category><![CDATA[워드프레스]]></category>
		<category><![CDATA[이미지]]></category>
		<category><![CDATA[이미지 핫링크 방지]]></category>
		<category><![CDATA[핫링크 방지]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=34021</guid>

					<description><![CDATA[<p>워드프레스 .htacss 파일 작성에 대한 글입니다. 이미지 핫링크 방지 및 리디렉션에 대한 정보를 포함하고 있습니다. (This article is about creating a wordpress .htacss file. Contains information about image hot-link prevention and redirection.)</p>
<p>The post <a href="https://lycos7560.com/etc/wordpress-htaccess-%ed%95%ab%eb%a7%81%ed%81%ac-%eb%b0%a9%ec%a7%80-%eb%a6%ac%eb%94%94%eb%a0%89%ec%85%98/34021/">WordPress .htaccess 핫링크 방지, 리디렉션</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<script async="" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5698326622209671" crossorigin="anonymous"></script>
<!-- HorizontalAD -->
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5698326622209671" data-ad-slot="6908948342" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">워드프레스 .htaccess</h2>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="htaccess" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?lycos7560.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?naver.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?nate.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?daum.net [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?paran.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yahoo.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.co.kr [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.co.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?bing.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?bing.co.kr [NC]
RewriteRule \.(pdf|PDF|zip|ZIP|gif|jpg|jpeg|png|GIF|JPG|JPEG|PNG|7z|mp4|mp3)$ https://lycos7560.com/wp-content/uploads/2023/01/wtf.gif [NC,R,L]
&lt;/IfModule>

&lt;IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} ^p=([0-9]+)$
RewriteRule ^index\.php$ /%category%/%postname%/%post_id%/ [R=301,L]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&lt;/IfModule>
</pre>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">핫링크 방지</h2>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="htaccess" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;IfModule mod_rewrite.c>
# Apache가 mod_rewrite 모듈이 설치되고 활성화된 경우에만 다음 코드를 실행하도록 지시

RewriteEngine On
#특정 .htaccess 파일에 대해 mod_rewrite 엔진을 활성화


RewriteCond %{HTTP_REFERER} !^$
# HTTP_REFERER 변수가 비어 있지 않은지(즉, 요청에 참조 URL이 있는지) 확인하는 조건을 설정

# 참조 URL이 허용된 도메인 목록에 없는지 확인하는 조건을 설정
# 검색 엔진 허용
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?lycos7560.com [NC] // 내 도메인
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?naver.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?nate.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?daum.net [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?paran.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yahoo.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.co.kr [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.co.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?bing.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?bing.co.kr [NC]

# 특정 파일 유형에 대한 요청을 "wtf.gif" 이미지 파일로 리디렉션하지만 참조 URL이 허용된 도메인 목록에 없는 경우에만 해당됩니다. 
# 이는 핫링크를 방지하거나 차단되거나 승인되지 않은 요청에 대해 특정 이미지를 표시하는 데 사용될 수 있습니다.
RewriteRule \.(pdf|PDF|zip|ZIP|gif|jpg|jpeg|png|GIF|JPG|JPEG|PNG|7z|mp4|mp3)$ https://lycos7560.com/wp-content/uploads/2023/01/wtf.gif [NC,R,L]

&lt;/IfModule>
</pre>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">리디렉션</h2>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<pre class="EnlighterJSRAW" data-enlighter-language="htaccess" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;IfModule mod_rewrite.c>
# Apache가 mod_rewrite 모듈이 설치되고 활성화된 경우에만 다음 코드를 실행하도록 지시

RewriteEngine On
#특정 .htaccess 파일에 대해 mod_rewrite 엔진을 활성화

RewriteBase /
# 모든 후속 RewriteRules에 대한 기본 URL을 설정합니다. 
# 이 경우 기본 URL을 도메인의 루트로 설정합니다.


# 쿼리 문자열(예: "?" 문자 뒤의 URL 부분)이 "p=([0-9]+)" 패턴과 일치하는지 확인 
# 하나 이상의 숫자가 있는 쿼리 문자열 매개 변수 "p"와 일치합니다
RewriteCond %{QUERY_STRING} ^p=([0-9]+)$


# 이전 RewriteCond가 일치하면 이 RewriteRule은 요청을 새 URL로 리디렉션 
# 특히 이전 스타일의 WordPress 영구 링크(예: https://lycos7560.com/?p=1234)에 대한 요청을 
# 새로운 스타일의 영구 링크로 리디렉션
# [R=301,L]RewriteRule 끝에 있는 은 Apache에게 영구 리디렉션(301)을 실행하고 추가 규칙(L) 처리를 중지하도록 지시
RewriteRule ^index\.php$ /%category%/%postname%/%post_id%/ [R=301,L]


# HTTP_AUTHORITISION이라는 환경 변수를 만들고 HTTP 요청의 Authorization 헤더 내용에 값을 설정합니다.
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]


# index.php이 줄은 요청을 일치시키고 플래그 를 사용하여 추가 재작성 규칙 처리를 중지하는 재작성 규칙입니다 [L]. 
RewriteRule ^index\.php$ - [L]

# %{REQUEST_FILENAME}이 두 줄은 요청한 파일명( )이 파일( !-f)로 존재하지 않는지( ) 디렉토리로 존재하지 않는지( !-d) 를 확인하는 재작성 조건 
# 기존 파일이나 디렉토리에 대한 요청을 다시 쓰는 것을 방지
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# /index.php이 마지막 줄은 남아 있는 모든 요청을 일반적으로 웹 애플리케이션의 전면 컨트롤러인 로 리디렉션하는 재작성 규칙
# [L]은 추가 재작성 규칙 처리를 중지
RewriteRule . /index.php [L]

&lt;/IfModule></pre>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<script async="" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5698326622209671" crossorigin="anonymous"></script>
<ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-5698326622209671" data-ad-slot="4245812909"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
<p>The post <a href="https://lycos7560.com/etc/wordpress-htaccess-%ed%95%ab%eb%a7%81%ed%81%ac-%eb%b0%a9%ec%a7%80-%eb%a6%ac%eb%94%94%eb%a0%89%ec%85%98/34021/">WordPress .htaccess 핫링크 방지, 리디렉션</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/etc/wordpress-htaccess-%ed%95%ab%eb%a7%81%ed%81%ac-%eb%b0%a9%ec%a7%80-%eb%a6%ac%eb%94%94%eb%a0%89%ec%85%98/34021/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
