หัวข้อ: ไครมีscript link out แบบนี้ได้มั่ง ครับ
เริ่มหัวข้อโดย: peam1234 ที่ 24 มีนาคม 2010, 22:26:35
คือ Script Link Out ที่เวลาคลิกลิ้งค์จะมีต่อไปเช่น คลิกลิ้งค์ Google.com ตรง Address จะเป็น http://www.domain.com/link.php?url=google.com แต่อยากทำให้เข้ารหัสเป็นแบบนี้แทนชื่อเว็บโดยตรง http://www.domain.com/link.php?url=aHR0cDovL2ZvcnVtcy5zb3NoaWZhbmNsdWIuY29 เข้าใจไหมหว่า ^^
หัวข้อ: Re: ไครมีscript link out แบบนี้ได้มั่ง ครับ
เริ่มหัวข้อโดย: UbOT ที่ 24 มีนาคม 2010, 22:43:16
Anonym clone ครับ
หัวข้อ: Re: ไครมีscript link out แบบนี้ได้มั่ง ครับ
เริ่มหัวข้อโดย: civilclub ที่ 24 มีนาคม 2010, 22:45:47
:P ลองใช้ php 64 บิท string base64_encode ( string $data ) และ string base64_decode ( string $data [, bool $strict ] ) ข้อมูลเพิ่มเติม http://th.php.net/manual/en/function.base64-decode.php Edit : ไม่แน่ใจว่าจะใช้ได้หรือเปล่า :P
หัวข้อ: Re: ไครมีscript link out แบบนี้ได้มั่ง ครับ
เริ่มหัวข้อโดย: SHIINZ ที่ 24 มีนาคม 2010, 22:55:00
:P ลองใช้ php 64 บิท string base64_encode ( string $data ) และ string base64_decode ( string $data [, bool $strict ] ) ข้อมูลเพิ่มเติม [url]http://th.php.net/manual/en/function.base64-decode.php[/url] Edit : ไม่แน่ใจว่าจะใช้ได้หรือเปล่า :P ไม่น่าใช่ครับ :-[ --------------------- ถ้าเป็น Wordpress ผมใช้ Plugin ตัวนี้ครับ WP No External Links ลิ้งออกจะเป็นเช่นนี้ http://www.mysite.com/goto/http://targetsite.com
หัวข้อ: Re: ไครมีscript link out แบบนี้ได้มั่ง ครับ
เริ่มหัวข้อโดย: TAXZe ที่ 24 มีนาคม 2010, 22:57:14
md5 encode/decode ป่ะนั่น รหัสสั้นๆแบบนั้น
เคยทำ แต่ยุ่งยากจัด ลิ้งค์ตรงๆนั่นแหละ
:P
หัวข้อ: Re: ไครมีscript link out แบบนี้ได้มั่ง ครับ
เริ่มหัวข้อโดย: peam1234 ที่ 24 มีนาคม 2010, 22:59:26
encode อะไรก็ได้ขอให้มัน encode อ่า :( ไม่อยากลิ้งค์ตรง ไครรู้ก็บอกทีนะครับขอบคุณครับ :wanwan017:
หัวข้อ: Re: ไครมีscript link out แบบนี้ได้มั่ง ครับ
เริ่มหัวข้อโดย: jenovazac ที่ 25 มีนาคม 2010, 23:03:09
$url_encode = base64_encode("http://www.domain.com");
$link = "www.mydomain.com/link.php?url=$url_encode"; echo $link;
link.php
$url = $_GET['url']; $url_decode = base64_decode($url);
echo $url_decode;
หัวข้อ: Re: ไครมีscript link out แบบนี้ได้มั่ง ครับ
เริ่มหัวข้อโดย: peam1234 ที่ 29 มีนาคม 2010, 05:45:51
ทำยังไงให้เป็น base64 หว่า <?php $delay = "2"; $site = $_GET['url']; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="refresh" content="<?php echo $delay; ?>;url=<?php echo $site; ?>"> <meta name="robots" content="all" /> <meta name="language" content="TH-th" /> </head> <body> <!-- Start template --> <table height="150" width="100%"> <tr> <td> <!-- Start Content --> <p>Redirecting you to <?php echo $site; ?> in <?php echo $delay; ?> seconds ...</p> <p>If your browser does not automatically redirect in <?php echo $delay; ?> seconds <a href="<?php echo $site; ?>"> Click here </a></p>
<!-- End Content --> </td> </tr> </table> <!-- End Template --> </body> </html>
หัวข้อ: Re: ไครมีscript link out แบบนี้ได้มั่ง ครับ
เริ่มหัวข้อโดย: mastergtx ที่ 29 มีนาคม 2010, 08:36:38
ตัวอย่างการใช้ PHP ครับ <?php // redirectToUrl อัพเดท 04/10/2009 // Style CSS Design by I7Forums.com (เบิร์ด) // สงวนลิขสิทธิ์ (C)2009 $url = htmlentities($_GET['url']); $today_date = date("d-M-Y"); $today_time = date("h:i:s: a "); ?> <!-- Style CSS Design by I7Forums.com (เบิร์ด) สงวนลิขสิทธิ์ (C)2009 --> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Page-Exit" content="revealTrans(Duration=1,Transition=2)"> <title>ระบบเช็คลิงก์ออก</title> <style type="text/css"> /*NEW CSS 3.0 BY BIRD*/ .round{-moz-border-radius:5px;-webkit-border-radius:5px;} .round-top-right{-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px;} .round-right{-moz-border-radius-topright:5px;-moz-border-radius-bottomright:5px;-webkit-border-top-right-radius:5px;-webkit-border-bottom-right-radius:5px;} .round-bottom-right{-moz-border-radius-bottomright:5px;-webkit-border-bottom-right-radius:5px;} .round-bottom{-moz-border-radius-topright:0;-moz-border-radius-topleft:0;-moz-border-radius-bottomright:5px;-moz-border-radius-bottomleft:5px;-webkit-border-top-right-radius:0;-webkit-border-top-left-radius:0;-webkit-border-bottom-right-radius:5px;-webkit-border-bottom-left-radius:5px;} .round-bottom-left{-moz-border-radius-bottomleft:5px;-webkit-border-bottom-left-radius:5px;} .round-left{-moz-border-radius-topleft:5px;-moz-border-radius-bottomleft:5px;-webkit-border-top-left-radius:5px;-webkit-border-bottom-left-radius:5px;} .round-top-left{-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px;} .round-top{-moz-border-radius-topright:5px;-moz-border-radius-topleft:5px;-moz-border-radius-bottomright:0;-moz-border-radius-bottomleft:0;-webkit-border-top-right-radius:5px;-webkit-border-top-left-radius:5px;-webkit-border-bottom-right-radius:0;-webkit-border-bottom-left-radius:0;} </style> </head> <body style="font-family:Verdana"> <script language="javascript"> //setTimeout('document.RedirectX.submit()', 1000); setTimeout('top.location.href="<?php echo $url; ?>"', 2500); </script>
<div align="center"> <table cellpadding="0" cellspacing="1" style="border:5px solid #d9e9f1;background:#7fbddd; text-align:left;" class="work1 round"> <tr> <td style="padding:0;"> <table cellpadding="30" cellspacing="0" style="border:1px solid #ffffff;background:#f7f7f7;width:500px;"> <tr> <td style="line-height:2;font-size:12px;"> <div style="font-size:14px;margin-bottom:10px;font-weight:700;text-shadow: #fff 0 1px 0;">Hi, นี่คือระบบเช็คลิงก์ออก</div> <p style="color:#ff6600;margin:0;text-shadow: #fff 0 1px 0;">ไชต์นี้เป็นอันตรายหรือไม่เราไม่รู้ คุณแน่ใจแล้วหรือที่จะเข้าชมไซต์นี้</p> <div style="padding:8px 10px;margin:10px 0 5px;background:#ffffff;border:1px solid #cbcbcb;word-break:break-all;word-wrap:break-word;line-height:1.5;font-size:14px;"><a href="<?php echo $url; ?>" rel="nofollow" style="color:#3366cc;text-shadow: #fff 0 1px 0;">คลิกที่นี่เพื่อเข้าชมไซต์นี้ หรือรอรีเฟรชหน้าเองอัตโนมัติภายใน 3 วินาที <?php echo $url; ?></a></div> <div style="color:#999999;margin-bottom:0px;text-shadow: #fff 0 1px 0;">ถ้าคุณไม่สามารถคลิกที่ลิงก์ได้ กรุณาคัดลอกที่ตั้งลิงก์ไปวางที่แอดเดรสบาร์</div> <div style="border-top:1px solid #e2e2e2;background:#ffffff;overflow:hidden;height:1px;*height:2px;margin:10px 0;"></div> สำหรับใครที่ยังไม่มีบัญชีของ i7forums.com กรุณาลงทะเบียนด้วยนะ<p style="margin:0;"><span style="padding-right:5em;">ยังไม่มีบัญชีผู้ใช้: <a href="http://www.i7forums.com/register.php" target="_blank" style="color:#009900;text-shadow: #fff 0 1px 0;">สมัครสมาชิก</a></span>มีบัญชีผู้ใช้อยู่แล้ว: <a href="http://www.i7forums.com/logging.php?action=login" target="_blank" style="color:#009900;text-shadow: #fff 0 1px 0;">เข้าระบบ</a></p> <div style="border-top:1px solid #e2e2e2;background:#ffffff;overflow:hidden;height:1px;*height:2px;margin:10px 0;text-shadow: #fff 0 1px 0;"></div> บริการ: <a href="http://hosting.i7forums.com/" target="_blank" style="color:#3366cc;">เว็บโฮสติ้ง</a> | <a href="http://digg.i7forums.com/" target="_blank" style="color:#3366cc;">อัพเดทข่าวไอที</a> | Follow Me <img src="http://www.i7forums.com/images/twitter.png" border="0" alt="เพิ่มเข้า Twitter"><a href="http://twitter.com/i7forums" rel="nofollow" target="_blank" style="color:#3399cc;"><b>at Twitter!</b></a><br /> เวลาปัจจุบัน: <?php echo $today_date;?> <?php echo $today_time; ?> <i>© 2010 i7Forums</i> </td> </tr> </table> </td> </tr> </table> </div> </body> </html> อธิบาย นี่คือคำสั่ง PHP <?php $url = htmlentities($_GET['url']); ?> การนำไปใช้ ทดสอบดูนะที่นี่ http://www.i7forums.com/go.php http://www.i7forums.com/go.php?url=http://www.thaiseoboard.com (http://upic.me/i/fx/329201083517am.gif) เอาไปใช้ได้ตามสบายครับ :wanwan016:
หัวข้อ: Re: ไครมีscript link out แบบนี้ได้มั่ง ครับ
เริ่มหัวข้อโดย: peam1234 ที่ 29 มีนาคม 2010, 09:05:02
อ่าคือว่าจะแก้ให้มันแสดงเป็น link.php....=dasdkfhqwbcjkwj อะ ไม่เอา =www.domain.com :P :P
|