Search for a search engine to determine the code to jump to the search engine to write a search engine to determine the code to jump if it is Baidu to jump to http://aaaa.com & nbsp; if it is google to tune to http://bbbb.com & nbsp; if it is Sogou to jump to http: // cc find a search engine to identify the code to jump
Ask hero to write a search engine to identify the code and jump
If it is Baidu, jump to http://aaaa.com
If it was google, it would be transferred to http://bbbb.com.
If it's Sogou, jump to http://cccc.com.
Input directly without jump
Thank you.
------ Solution --------------------
I don't know what you want to use. maybe it's just a job. this is an example. I don't think you can get the token that baidu.com gave you? Haha, so we need to use the actual battle to bring the alternative into a positive ratio. All of these are modified by yourself.
PHP code
$ RUrl = $ _ SERVER ['http _ referer']; if (! Empty ($ RUrl) {$ UArray = parse_url ($ RUrl); $ UHost = $ UArray ['host']; switch ($ UHost) {case 'www .baidu.com ': header ("Location: http://aaa.com"); break; case 'www .google.com ': header ("Location: http://bbb.com"); break; case 'www .sogou.com': header ("Location: http://ccc.com "); break; default: echo $ UHost; break;} echo 'directly logging in ';