Strict Standards: Non-static method Protector::getInstance() should not be called statically in /home/suehirogari/suehirogari.com/xoops_trust_path/modules/protector/include/precheck_functions.php on line 12

Strict Standards: Non-static method XCube_Root::getSingleton() should not be called statically in /home/suehirogari/suehirogari.com/public_html/include/common.php on line 18

Deprecated: Non-static method XCube_Root::getSingleton() should not be called statically, assuming $this from incompatible context in /home/suehirogari/suehirogari.com/public_html/modules/user/preload/Primary/Primary.class.php on line 13
製作途中など、テストサイトを検索結果に表示させない方法 | 社内SEのウェブ制作

2010.10.04xoopsズープス

製作途中など、テストサイトを検索結果に表示させない方法

必要なファイル
robots.txt
.htaccess
.passwd

メタ要素に下記の記述を行う。

meta要素の記述例
互換レンダーシステム → 一般設定 → METAタグ(ROBOTS)を No Index No Follow  に

robots.txtをルートディレクトリにアップする。

robots.txtの記述例
User-agent: *
Disallow: /

.htaccessファイルでベーシック認証をかける。

AuthType Basic
AuthName "Input your ID and Password." ←日本語だと文字化けするので、英語で。
AuthUserFile /home/※※/※※/※※/.passwd ←任意のディレクトリ。ユーザがアクセスできないディレクトリが望ましい。
require valid-user
パスワードの暗号化は下記のサイトで変換をかけて。
http://www.1kara.net/knowhow/basic.php 表示されたテキストを、.passwd へコピペ。
このとき「 任意のユーザID:暗号化されたパスワード 」とする。
例:taro: $1$eKvuzPgf$/nTUGc

 



アップロード。以上 尚、


このカテゴリの人気記事



  • コメント (0)
  • トラックバック (0)
  • 閲覧 (10617)

トラックバック

トラックバックpingアドレス http://www.suehirogari.com/modules/blog/tb.php/118

コメントの投稿

コメント投稿に関するルール : コメントは全て承認が必要

キーワードでサイト内を検索
人気のエントリ