Problem mit InetGet

  • Wie viele andere Seiten möchte diese Seite nur von Browsern aufgerufen werden und nicht von irgendwelchen Bot-Programmen.
    Um das zu erreichen checken sie den User-Agent beim Zugriff auf die Seite.
    Dort werden dann alle Zugriffe welche mit dem UserAgent namens "AutoIt" aufgerufen geblockt.
    Also muss man diesen String ändern in irgendwas anderes:

    [autoit]

    HttpSetUserAgent("irgendwas")

    [/autoit]
  • @Milla hier mal alle wichtige Daten zu bot-cave :)
    Bin selber Sro Spieler.

    Regards

    Spoiler anzeigen
    [autoit]

    #include <string.au3>
    #include <Array.au3>
    #include <INet.au3>
    #include <IE.au3>
    HttpSetUserAgent("Firefox")

    [/autoit] [autoit][/autoit] [autoit]

    #comments-start
    <h3>Download</h3>
    <div class="staticcontent"><p>Latest SBot-Vers: <strong>v1.91<br />
    </strong>Link: <strong><a href="http://89.146.215.204/download/SBot_1.91.zip">SBot_1.91.zip</a></strong><br />
    Release Date: <strong>11.01.2011</strong></p>
    </div> </div>
    <div class="moduletable">
    <h3>Purchase</h3>
    <div class="staticcontent2">Buy SBot-Flatrate for <strong>only 5 Euro/month</strong> easily via PayPal!<br />
    Purchase SBot (currently disabled)</div><div class="staticcontent2"> </div>
    <div class="staticcontent2"><strong>Purchase status: </strong>
    <br />* new customers: <font color="#ff0000">closed</font>
    <br />* old customers: <font color="#00ff00">open</font>
    <br /> </div>
    #ce

    [/autoit] [autoit][/autoit] [autoit]

    $Source = _INetGetSource("http://www.bot-cave.net/main/index.php?option=com_content&view=frontpage&Itemid=3")

    [/autoit] [autoit][/autoit] [autoit]

    Local $newcu = _StringBetween($Source, '<font color="#ff0000">', '</font>') ; New
    Local $oldcu = _StringBetween($Source, '<font color="#00ff00">', '</font>') ; Old

    [/autoit] [autoit][/autoit] [autoit]

    Local $version = _StringBetween($Source, 'Latest SBot-Vers: <strong>', '<br />') ; Version
    Local $rele = _StringBetween($Source, 'Release Date: <strong>', '</strong>') ; Release
    Local $link = _StringBetween($Source, 'Link: <strong><a href="', '">') ; Link

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    Local $test[2] = ["New Customers: " & $newcu[0] & @CRLF & "Old Customers: " & $oldcu[0] & @CRLF & @CRLF & "Version: " & $version[0] & @CRLF & "Release Datum: " & $rele[0] & @CRLF & @CRLF & "Download Link: " & $link[0]]
    MsgBox(0,"By Awesome aka tuttifrutti (visit: the-franky.de)",$test[0])

    [/autoit]
  • Hab schon was ich brauche ;)

    Edit: SBot accounts gitbs mit Zeitbegrenzung bei Mods zu kaufen oder eben ebay :P

    Einmal editiert, zuletzt von Milla (11. Januar 2011 um 16:38)