ime.nuってどうなっているの?at PHPime.nuってどうなっているの? - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト106:nobodyさん 03/11/03 17:28 やはり、404を使って簡単にやればいいのではないだろーか。 .htaccess ファイル. ErrorDocument 404 /redirect.cgi redirect.cgi ファイル #!/usr/local/bin/perl print "Content-type: text/html; charset=Shift_JIS\n\n"; print "<html><head><title>テスト</title></head><body>"; if (!$ENV{'REQUEST_URI'}) {print "直接呼ぶな</body></html>\n";exit;} print qq(<A HREF="$ENV{'REQUEST_URI'}">$ENV{'REQUEST_URI'}</A>); print "</body></html>\n"; 107:nobodyさん 03/11/03 17:36 >>106 スマソ.かなりバグがあった #!/usr/local/bin/perl $r=$ENV{'REQUEST_URI'}; print "Content-type: text/html; charset=Shift_JIS\n\n"; print "<html><head><title>テスト</title></head><body>"; if ($r =~ /http:\/\//i) {print "直接呼ぶな</body></html>\n";exit;} $r =~ s|/||; print qq(他のサイトにJunp ==>> <A HREF="$r">$r</A>); print "</body></html>\n"; だ.http:// から呼び出さないと全く無意味. >>105 | ←は? それか、何かの文字を連続で使うとか 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch