Redirect Links

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Redirect Links

    Hallo @ all ...

    habe die Redirect Link funktion in mein Forum eingebaut ...

    Wenn ein User nun Ebay-Links postet, werden die Artikel angeblich nicht gefunden ...

    Code:
    <html>
    <head>
    <title>RELATED LINK</title>
    <script language="javascript">
    </script>
    </head>
    
    
    
    <frameset rows="23,*" border="0" framespacing="0" frameborder="0">  
    
    
    <frame src=top.php?url=<?php echo $_GET['url']; ?> name="redirect" noresize scrolling="NO" target="inhalt">
    
    
           <frame src="<?php echo $_GET['url']; ?>" name="seite" noresize scrolling="auto" target="inhalt">
              
           <noframes>
           <body bgcolor="#ffffff">
           </body>    
             </noframes>
             
    </frameset>
    
    
    <frameset>
    
    
    </frameset>
    </html>

    Wie muss es richtig aussehen, damit Ebay Links gehen?


    Wildkater

  • #2
    Wie sehen denn die Ebay Links formmässig aus ? Poste mal einen...
    Allenfalls unterbindet Ebay das DirectLinking von Artikeln ( ev mittels Cookie)

    Gruss

    tobi
    Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

    [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
    Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

    Kommentar


    • #3
      Geht (normal): http://cgi.ebay.de/ws/eBayISAPI.dll?...504770767&rd=1

      Redirect vom Board: http://ultimateboard.ul.funpic.de/wb...504770767&rd=1


      Wildkater

      Kommentar


      • #4
        Wie machst du denn den redirect ??
        Ich befinde mich nämlich immer noch innerhalb deiner Domain und das könnte Ebay stören.
        Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

        [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
        Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

        Kommentar


        • #5
          Code:
          <frameset rows="23,*" border="0" framespacing="0" frameborder="0">  
          
          
          <frame src=top.php?url=<?php echo $_GET['url']; ?> name="redirect" noresize scrolling="NO" target="inhalt">
          
          
                 <frame src="<?php echo $_GET['url']; ?>" name="seite" noresize scrolling="auto" target="inhalt">
                    
                 <noframes>
                 <body bgcolor="#ffffff">
                 </body>    
                   </noframes>
                   
          </frameset>
          
          
          <frameset>
          
          
          </frameset>
          </html>
          Frameset ausserhalb des Bodies ???????
          Du versuchst wie es scheint die Ebay Seite in ein Frame bei dir zu laden. Würde ich als Ebay auch unterbinden...
          Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

          [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
          Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

          Kommentar


          • #6
            Wie sollte es denn aussehen, damit es geht?

            gn8 @ all bin erstmal weg ...


            Wildkater

            Kommentar


            • #7
              Also erstmal den HTML-Bereich korrekt darstellen.
              Dann würde ich einen redirect mittels header machen (auf Ebay)
              PHP-Code:
              if($_GET['url'] && strstr($_GET['url'], "cgi.ebay.de"))
              {
                  
              header("Location: $_GET[url]");
                  exit;

              So müsste es in jedem Falle funzen. Versuche aber nicht den Inhalt von
              Ebay in ein Frame/Iframe bei dir zu laden --> Content-Klau

              Gruss

              tobi
              Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

              [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
              Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

              Kommentar


              • #8
                Könntest du mir vielleicht den ganzen Code aufschreiben? So das ich es nur noch als redirect.php speichern muss?

                Wäre echt lieb von dir


                Wildkater


                EDIT:

                So?

                PHP-Code:
                <html>
                <head>
                <title>RELATED LINK</title>

                       <a href="<?php 
                       
                       
                if($_GET['url'] && strstr($_GET['url'], "cgi.ebay.de"))
                {
                    
                header("Location: $_GET[url]");
                    exit;
                }
                 
                ?>">
                 
                  </head>
                 </body>    
                </html>
                Zuletzt geändert von Wildkater; 07.04.2005, 10:27.

                Kommentar


                • #9
                  So müsste es funzen.
                  1. Der href muss weg --> du darfst nicht ein Leerzeichen an den Browser
                  senden, wenn du noch einen header verwenden willst.
                  d.h. auch alle html Tags müssen raus, denn der Benutzer wird diese Seite
                  gar nicht sehen, sondern mittels header direkt weitergeleitet.
                  PHP-Code:
                  if($_GET['url'] && strstr($_GET['url'], "cgi.ebay.de"))
                  {
                      
                  header("Location: $_GET[url]");
                      exit;
                  }
                  else
                  {
                     die(
                  "Ungültiger Link !!");

                  Gruss

                  tobi
                  Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

                  [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
                  Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

                  Kommentar


                  • #10
                    Sry, bin halt noch Newbie ...

                    Also einfach ne rein php machen?

                    PHP-Code:
                    <?php

                    if($_GET['url'] && strstr($_GET['url'], "cgi.ebay.de"))
                    {
                        
                    header("Location: $_GET[url]");
                        exit;
                    }
                    else
                    {
                       die(
                    "Ungültiger Link !!");
                    }
                    ?>

                    Wildkater

                    Kommentar


                    • #11
                      Also einfach ne rein php machen?
                      Genau so

                      Gruss

                      tobi
                      Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

                      [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
                      Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

                      Kommentar

                      Lädt...
                      X