.htaccessが使えない環境の場合、JavaScriptで簡易的にリンク元を判別、 指定ページに飛ばす事でリンク制限が行えます。 ただし、.htaccessがページを表示させる前にブロックするのに対し、 JavaScriptは一度ページを読み込みかけてから、別ページへジャンプ、となるので、 処理の遅いパソコンでは一瞬隠したいページが表示されてしまうことがあります。 .htaccessが使えるならそちらを使う事をおすすめします。 また、JavaScriptのリンク制限は、あくまで人間の目を誤魔化しているだけなので検索よけの効果は皆無です。 URLをコピーペーストして来た人や、ノートンなどリファラを遮断するソフトを入れている人には効きません。またJavaScriptをオフにしている人にも効果がありません。 JavaScriptで特定URLからのリンクを制限 JavaScriptで特定URL