본문 바로가기

반응형

htaccess

Referrer Checking with .htaccess Referrer Checking with .htaccess Referrer checking is a mechanism to restrict the way web resources are used. Specifically, you can use this technique to insist that files only be viewed from a specific page or site (or, rather, only viewed if the browser says that it’s viewing the file on your site, truthfully or otherwise). Normally you would set up a referrer check in an htaccess file like th.. 더보기
.htaccess 를 이용해서 directory index 설정 및 순서 바꾸기 .htaccess file 에 DirectoryIndex index.php index.html 와 같이 설정하면 index.php index.html 순서로 먼저 나오게 된다. 더보기
아파치(Apache) mod_rewrite 를 이용한 주소 이동 www.aaa.com 으로 시작하는 주소만 www.bbb.net 로 보내기 - aaa.com 의 루트 디렉토리에 ".htaccess" 파일을 추가한다. RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.aaa\.com) RewriteRule (.*) http://www.bbb.net/$1 [L] www.aaa.com 과 aaa.com 으로 시작하는 주소를 www.bbb.net 로 보내기 - aaa.com 의 루트 디렉토리에 ".htaccess" 파일을 추가한다. RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.aaa\.com|aaa\.com) RewriteRule (.*) http://www.bbb.net/$1 [L] aaa.c.. 더보기
아파치 설정으로 검색엔진 차단된 사이트 .htaccess 로 푸는 방법 과다한 트래픽때문에 검색엔진에 크롤러들을 차단해둔 경우가있다. 아파치 설정 파일인 httpd.conf 파일에 에이젼트를 나열하여 BrowserMatchNoCase "WebZIP" go_out BrowserMatchNoCase "Teleport" go_out BrowserMatchNoCase "NamoWebEditor" go_out BrowserMatchNoCase "WebSymmetrix" go_out BrowserMatchNoCase "GetRight" go_out BrowserMatchNoCase "WebCopier" go_out BrowserMatchNoCase "FlashGet" go_out BrowserMatchNoCase "Nimo" go_out BrowserMatchNoCase "Google.. 더보기

반응형