junhan 发表于 2009-9-15 09:15:41

百度贴吧图片点击后跳转链接

给一个演示地址:
http://tieba.baidu.com/f?kz=643299680
准备一张图片,比如001.jpg图片,
然后在空间建立一个001.jpg目录
把001.jpg图片放到001.jpg目录里面,
再准备一个index.php文件,代码如下:然后把index.php文件放到001.jpg目录里面)
到百度贴吧插入图片图片地址:http://www.xxx.com/001.jpg 即可


<?php

$url = (strstr($_SERVER['HTTP_REFERER'], 'baidu'))?'001.jpg':'http://www.google.cn/';

header("Location: {$url}");
exit;
?>



<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title> </title>
</head>
<body>
    <form id="form1" runat="server">
    </form>
   

</body>
</html>

[ 本帖最后由 junhan 于 2009-9-15 11:39 编辑 ]

cpuer 发表于 2009-9-15 10:26:42

回复 1# 的帖子

有点意思,点击后直接跳到首页去了。

htaccess就可以实现,直接跳转到首页。

junhan 发表于 2009-9-15 10:27:50

搞出来啦```呵呵``

cpuer 发表于 2009-9-15 10:33:54

回复 3# 的帖子

关键词 redirect

cpuer 发表于 2009-9-15 10:36:06

回复 1# 的帖子

这样就跳转到www.google.cn了?

junhan 发表于 2009-9-15 10:37:52

是的``找到啦,测试可用`

cpuer 发表于 2009-9-15 10:43:42

回复 6# 的帖子

:victory: :victory:

Turing 发表于 2009-9-15 11:43:51

搞这个做什么?

msdr 发表于 2009-9-15 12:01:17

回复 8# 的帖子

PV

cpuer 发表于 2009-9-15 12:08:32

回复 9# 的帖子

呵呵,一点2个PV到手,不过没质量啊。
页: [1] 2 3
查看完整版本: 百度贴吧图片点击后跳转链接