Page 4 of 4 FirstFirst 1234
Results 31 to 40 of 40

Thread: Link And Http Referer

  1. #31
    h1
    Guest
    Then make it one echo.
    Code:
    <?php
    if isset(($_GET[ref]))
    {
       $ref = $_GET["ref"];
       echo '<meta http-equiv="refresh" content="0; url='.$ref.'" />';
       echo '<script language="javascript">if (self.location.href != top.window.location.href) { top.window.location.href = self.location.href }</script><br><a href=".$ref.">'.$ref.'</a>';
    }
    else
    {
       alert("No link specified.");
       history.go(-1);
    }
    ?>

  2. Internet, Programming and Graphics   -   #32
    Parse error: parse error, unexpected T_ISSET, expecting '(' in redirect.php on line 2
    It looks very good but am getting this error.

  3. Internet, Programming and Graphics   -   #33
    h1
    Guest
    Shit...
    Code:
    <?php
    echo '<'.'?xml version="1.0" encoding="UTF-8" standalone="yes" ?'.'>\n<!doctype html public "-//W3C//DTD XHTML 1.1" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" dir="ltr">\n<head>\n';
    if (isset($_GET[ref]))
    {
      $ref = $_GET["ref"];
      echo '<meta http-equiv="refresh" content="0; url='.$ref.'" />\n<script language="javascript">if (self.location.href != top.window.location.href) { top.window.location.href = self.location.href }</script><br><a href=".$ref.">'.$ref.'</a>';
    }
    else
    {
      alert("No link specified.");
      history.go(-1);
    }
    ?>
    </head>
    <body>
    </body>
    </html>
    That should do it.

  4. Internet, Programming and Graphics   -   #34
    \n\n\n\n
    Fatal error: Call to undefined function: alert() in redirect.php on line 10
    Now it says that. is a \n a line break ? i removed all the \n and i get

    Fatal error: Call to undefined function: alert() in redirect.php on line 10
    Do i have to use a bunch of echo(s) of something ?

  5. Internet, Programming and Graphics   -   #35
    h1
    Guest
    Damn... forgot to echo the last few lines...
    [code]<?php
    echo &#39;<&#39;.&#39;?xml version="1.0" encoding="UTF-8" standalone="yes" ?&#39;.&#39;>&#092;n<&#33;doctype html public "-//W3C//DTD XHTML 1.1" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />&#092;n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" dir="ltr">&#092;n<head>&#092;n&#39;;
    if (isset(&#036;_GET[ref]))
    {
    &#036;ref = &#036;_GET["ref"];
    echo &#39;<meta http-equiv="refresh" content="0; url=&#39;.&#036;ref.&#39;" />&#092;n&#60;script language="javascript">if (self.location.href &#33;= top.window.location.href) { top.window.location.href = self.location.href }</script>
    &#39;.&#036;ref.&#39;&#092;n&#39;;
    }
    else
    {
    echo &#39;alert("No link specified.");&#092;nhistory.go(-1);&#092;n&#39;;
    }
    ?>
    </script>
    </head>
    <body>
    </body>
    </html>

  6. Internet, Programming and Graphics   -   #36
    Code:
    &#60;?php
    echo &#39;&#60;&#39;.&#39;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34; standalone=&#34;yes&#34; ?&#39;.&#39;&#62;&#60;&#33;doctype html public &#34;-//W3C//DTD XHTML 1.1&#34; &#34;http&#58;//www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&#34; /&#62;&#60;html xmlns=&#34;http&#58;//www.w3.org/1999/xhtml&#34; xml&#58;lang=&#34;en-US&#34; lang=&#34;en-US&#34; dir=&#34;ltr&#34;&#62;&#60;head&#62;&#39;;
    if &#40;isset&#40;&#036;_GET&#91;ref&#93;&#41;&#41;
    {
    &#036;ref = &#036;_GET&#91;&#34;ref&#34;&#93;;
    echo &#39;&#60;meta http-equiv=&#34;refresh&#34; content=&#34;0; url=&#39;.&#036;ref.&#39;&#34; /&#62;&#60;script language=&#34;javascript&#34;&#62;if &#40;self.location.href &#33;= top.window.location.href&#41; { top.window.location.href = self.location.href }&#60;/script&#62;&#60;br&#62;&#60;br&#62;&#60;br&#62;&#60;br&#62;&#60;a href=&#34;.&#036;ref.&#34;&#62;&#39;.&#036;ref.&#39;&#60;/a&#62;&#39;;
    }
    else
    {
    echo &#39;&#60;br&#62;&#60;br&#62;&#60;br&#62;&#60;br&#62;No link specified.&#39;;
    }
    ?&#62;
    &#60;/head&#62;
    &#60;body&#62;
    &#60;/body&#62;
    &#60;/html&#62;
    Your javascript alert does not seem to work. So it now just a text message. It seems to work better now. Does not reload in a infinite loop. Thanks alot haxor41789. I really appreciate it. B)

    Test

    Test 2

  7. Internet, Programming and Graphics   -   #37
    Arm's Avatar Poster
    Join Date
    Jul 2003
    Location
    a well
    Age
    36
    Posts
    1,437
    You can get the proxy ad-blcoking program The Proxomitron. It has an option to block referrer info.

  8. Internet, Programming and Graphics   -   #38
    Originally posted by Arm@17 February 2004 - 01:50
    You can get the proxy ad-blcoking program The Proxomitron. It has an option to block referrer info.
    How is that going to help me?

  9. Internet, Programming and Graphics   -   #39
    Arm's Avatar Poster
    Join Date
    Jul 2003
    Location
    a well
    Age
    36
    Posts
    1,437
    Originally posted by Ariel_001+16 February 2004 - 21:26--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (Ariel_001 @ 16 February 2004 - 21:26)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-Arm@17 February 2004 - 01:50
    You can get the proxy ad-blcoking program The Proxomitron. It has an option to block referrer info.
    How is that going to help me? [/b][/quote]
    It will fake your referrer and make the referrer always be the current site you are on.

  10. Internet, Programming and Graphics   -   #40
    How it will help me as a web master. I want to make links to some sites but do not want the sites to (easily) be able to trace links back to me

Page 4 of 4 FirstFirst 1234

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •