> 2002/01/16 (水) 22:07:55 ◆ ▼ ◇ [mirai]> > オッス(゚Д゚)オッス
> #include <stdio.h>
> #include <stdlib.h>
> int main(){
> static const char errurl[]="http://";
> char *query = getenv("QUERY_STRING");
> if(query == NULL)
> query=(char*)errurl;
> else
> if(strchr(query,'.')==NULL){ query=(char*)errurl;}
> printf("Content-type: text/html\n\n<html><head><title>redirector</title>
> <meta http-equiv=\"refresh\" content=\"0; url=%s\"><meta name=\"robots\" content=\"noindex, nofollow\"></head>
> <nody><a href=\"%s\">%s</a></body></html>", query, query, query);
> return 0;
> }
> 各自コンパイルして使え(;´Д`)
Perlかと思ってたらCなのか(゚Д゚)畏れ
参考:2002/01/16(水)22時06分12秒