1. 首页
  2. 网站跳转页面源码 php自适应万花筒广告跳转接口代码

网站跳转页面源码 php自适应万花筒广告跳转接口代码

QQ截图20211119212441.jpg

可用于网站广告安全风险提示,区分第三方链接,添加跳转页面屏蔽直链以免导致权重流失等。

复制粘贴代码保存为php文件,代码内容自行修改,接口调用示例:https:///ad.php?url= 你的域名+文件名.php?url=

 <?php $t_url=$_GET['url'];if(!empty($t_url)) { preg_match('/(http|https):\/\//',$t_url,$matches); if($matches){ $url=htmlspecialchars($t_url); $title='亲爱的朋友记得常回来哦...'; } else { preg_match('/\./i',$t_url,$matche); if($matche){ $url='http://'.htmlspecialchars($t_url); $title='亲爱的朋友记得常回来哦...'; } else { $url='https:///'; $title='参数错误,正在返回首页...'; } }} else { $title='参数缺失,正在返回首页...'; $url='https:///';}?><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="refresh" content="1;url='<?php echo $url;?>';"><title><?php echo $title;?></title><div id="circle"></div><div id="circletext"></div><div id="circle1"></div><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="refresh" content="1;url='<?php echo $url;?>';"><title><?php echo $title;?></title><style>html, body { width: 100%; height: 100%; margin: 0; background: #270F34; overflow: hidden; display: flex; align-items: center; justify-content: center } css-doodle { --color: @p(#51eaea, #fffde1, #ff9d76, #FB3569); --rule: ( :doodle { @grid: 30x1 / 18vmin; --deg: @p(-180deg, 180deg); } :container { perspective: 30vmin; } :after, :before { content: ''; background: var(--color); @place-cell: @r(100%) @r(100%); @size: @r(6px); @shape: heart; } @place-cell: center; @size: 100%; box-shadow: @m(2, (0 0 50px var(--color))); background: @m(100, (radial-gradient(var(--color) 50%, transparent 0) @r(-20%, 120%) @r(-20%, 100%) / 1px 1px no-repeat)); will-change: transform, opacity; animation: scale-up 12s linear infinite; animation-delay: calc(-12s / @size() * @i()); @keyframes scale-up { 0%, 95.01%, 100% { transform: translateZ(0) rotate(0); opacity: 0; } 10% { opacity: 1; } 95% { transform: translateZ(35vmin) rotateZ(@var(--deg)); } } ) }</style></head>  <body>    <css-doodle use="var(--rule)"></css-doodle>    <script src='https:///tiaozhuan.js'></script>  </body></html></html>