SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict
    Join Date
    Jul 2000
    Location
    North Central AR
    Posts
    231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am working on a submit script, for submitting to Search Engines and many other traffic sources.

    My question is I have read that some sites will not accept a url submitted from a script. Whether it is true or not I don't want to take the chance. So I am working on cloaking it or making it look like it was submitted on the site itself.

    I've seen cgi submit scripts that use a seperate file that contains browser info. How can this be done with php? I'm sure it can, just not sure who to do it. Or if some one can point in the direction of a pre-made script like this?

    Thanks in advance.

    ronnie
    The largest selection of PLR Articles on the Planet!
    Many Private Label Rights Products.

  2. #2
    SitePoint Evangelist
    Join Date
    May 2000
    Location
    Canada
    Posts
    533
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    simply put, that is wrong!

    search engines dont want scripts submitting to them. FAKING it, although possible, is not something you should be trying to do.
    cogito, ergo sum

  3. #3
    SitePoint Addict
    Join Date
    Jul 2000
    Location
    North Central AR
    Posts
    231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Vinay,

    Why are you blasting me? I am not trying to con anyone or rip anyone off. I am trying to save myself a ton of time!
    I am looking at submitting only one URL a day if that. But that one URL I would submit to MANY places and that would take ALOT of time.

    When submitting to SE's, I play by the rules better than 90% of those submitting!

    So, don't try to make me look like a scammer, thank you!

    ronnie
    The largest selection of PLR Articles on the Planet!
    Many Private Label Rights Products.

  4. #4
    SitePoint Evangelist
    Join Date
    Jul 2000
    Location
    Warwickshire, England
    Posts
    557
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fogery is wrong.. but for reference, this can be done quite easily with a raw socket.

    <?php
    /* Peter Windridge -> 2001 <- */
    error_reporting (E_ALL);

    /* get http port */
    $port = getservbyname ('www', 'tcp');

    /* You must use the hostname, NOT ip address. */
    $address = gethostbyname ('www.yoursite.com');

    /* Create a TCP/IP socket. */
    $socket = socket (AF_INET, SOCK_STREAM, 0);

    if ($socket < 0)
    {
    echo "socket() failed: reason: " . strerror ($socket) . "<br>";
    exit;
    } else {
    echo "socket() successful: " . strerror ($socket) . "<br>";
    }

    echo "Attempting to connect to '$address' on port '$port'...<br>";
    $result = connect ($socket, $address, $port);
    if ($result < 0) {
    echo "connect() failed.\nReason: ($result) " . strerror($result) . "<br>";
    exit;
    } else {
    echo "OK.<br>";
    }


    // Here is where the HTTP request is formulated..
    // depending on whether you do a get or post, it will be either..
    // take a look at http://www.cis.ohio-state.edu/htbin/rfc/rfc2068.txt (rfc 2068) for more info..

    if ($method == "get")
    {
    $in = "GET /path/to/script.cgi?var=val&var=val HTTP/1.0\r\n".
    "User-Agent: Choose one here\r\n".
    "Referer: http://siteyoursupposedtocomefrom\r\n".
    "Host: http://www.site.com".
    ."\r\n\r\n";
    }
    else
    {
    $in = "POST /path/to/script.cgi HTTP/1.0\r\n".
    "User-Agent: Choose one here\r\n".
    "Referer: http://siteyoursupposedtocomefrom\r\n".
    "Host: http://www.site.com\r\n".
    "Content-Length: bytes\r\n".
    "Content-Type: application/x-wwwform-urlencoded".
    ."\r\n\r\n".
    "something=something&somethingelse=somethingelse";
    }

    $out = '';

    echo "Sending HTTP request...";
    write ($socket, $in, strlen ($in));
    echo "OK.<br><p>";

    echo "Reading response:\n\n";
    while (read ($socket, $out, 2048)) {
    echo $out;
    }

    echo "Closing socket...";
    close ($socket);
    echo "</p>OK.<br>";
    ?>

    As Vinay says.. this must not be used for automated submission etc.. if this happens too much you lose out in the end because the search engines are full of things that shouldn't be there and you cant find what you want!

  5. #5
    SitePoint Addict
    Join Date
    Jul 2000
    Location
    North Central AR
    Posts
    231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Peter,

    I seems that everyone thinks I plan to use this for evil intentions. I could not AGREE more that their are FAR to many people spamming the engines and YES even now they are full of unrelated posts.

    I build small subsites of different interests and would like to try to get some traffic to them. And just like the MANY submission services out there, like add-me or register-it, I just want to save myself some time. So all these site submission services are also bad too? or wrong?

    I have so much to do and no time to do it. I've been trying to automate anything so that I can get more done.

    The largest selection of PLR Articles on the Planet!
    Many Private Label Rights Products.


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
  •