why not sending my referrer?!

Discussion in 'PHP' started by redhits, Oct 4, 2005.

  1. #1
    what's wrong out here that this will never sent the Referer...?!
    $fp = @fsockopen($domain, 80, $errno, $errstr, 30);
    if (!$fp) {
        $redok=2;
    } else {
    $send='';
    $send .= "$method $document HTTP/1.1\r\n";
    $send .= "Host: $domain\r\n";
    $send .= "Referer: http://softgroups.com\r\n";
    $send .= "User-Agent: $user_agent\r\n";
    $send .= "Connection: Close\r\n\r\n";
    
        fwrite($fp, $send);
    $buffer='';    
     if($getdata==1){ while (!feof($fp)) {        $buffer .=fgets($fp, 
    
    $bsize);} }
        fclose($fp);
       }
    PHP:

     
    redhits, Oct 4, 2005 IP
  2. boccio

    boccio Peon

    Messages:
    82
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do you mean $fp is always returning FALSE or what?

    Did you try to print out the error with
    
    if (!$fp) {
       echo "$errstr ($errno)<br />\n";
    
    Code (markup):
     
    boccio, Oct 4, 2005 IP
  3. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #3
    If that's for referrer spam, can you take all my domains off your list please? :)
     
    digitalpoint, Oct 4, 2005 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    28,821
    Likes Received:
    4,539
    Best Answers:
    123
    Trophy Points:
    665
    #4
    Personally I find curl to be more efficient.

    I'm sure you wouldn't be doing referral spam.
     
    sarahk, Oct 5, 2005 IP
  5. redhits

    redhits Notable Member

    Messages:
    3,023
    Likes Received:
    277
    Best Answers:
    0
    Trophy Points:
    255
    #5
    neah just want my new search engine bot to tell webmasters from where it's coming
     
    redhits, Oct 6, 2005 IP
  6. TheHoff

    TheHoff Peon

    Messages:
    1,530
    Likes Received:
    130
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If you are doing referral spam, please add me to the list! I'm ready to buy some land in Montana or perhaps a condominum in Guatemala.
     
    TheHoff, Oct 6, 2005 IP
  7. sarahk

    sarahk iTamer Staff

    Messages:
    28,821
    Likes Received:
    4,539
    Best Answers:
    123
    Trophy Points:
    665
    #7
    You need to do some research on how search engine bots work, buddy. You use the user_agent to give the bot name and the site's bot info page. Are you sure you're up to this?

    Maybe use phpDig or sphider as case studies.
     
    sarahk, Oct 6, 2005 IP
    digitalpoint likes this.
  8. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #8
    That's referrer spam by definition. You should be using the user agent (you can even put a URL in there if you want).

    For example Google uses the following user agent:

    Mozilla/5.0 (compatible; googlebot/2.1; +http://www.google.com/bot.html)
     
    digitalpoint, Oct 6, 2005 IP
  9. redhits

    redhits Notable Member

    Messages:
    3,023
    Likes Received:
    277
    Best Answers:
    0
    Trophy Points:
    255
    #9
    Ohhh really?! What can you win from referal spam ? and does spam refal working anymore?! I think not
    :)
    Why getting PR0 , when you can ad your website everyday in 100 "add url" pages.
    Just do everyday a search on google on this like
    keyword "add url"
    like webmaster resoures "add url"
    :)
    This will increse your SERPS a lot, so no I don't intend to use my servers powers for a weak 1000 PR0 backlinksm, when I could get 10 000 PR 1 good back links :)
     
    redhits, Oct 6, 2005 IP
  10. sarahk

    sarahk iTamer Staff

    Messages:
    28,821
    Likes Received:
    4,539
    Best Answers:
    123
    Trophy Points:
    665
    #10
    Pleased to hear it redhits.

    However my stats show that referral spam is still an popular way to build links.
    My blog shows that comment spam and trackback spam are equally popular.

    I'm confused about your site. Looks nice but there's no info, you can't go anywhere with the news archive items, the google ads don't work and then down the bottom there are a bunch of unformatted, spammy looking links.

    Can't see why you are wasting your sig link on it!
     
    sarahk, Oct 6, 2005 IP
  11. redhits

    redhits Notable Member

    Messages:
    3,023
    Likes Received:
    277
    Best Answers:
    0
    Trophy Points:
    255
    #11
    I am just working on it
    ;) lol
    :)))
     
    redhits, Oct 7, 2005 IP
  12. redbayron2006

    redbayron2006 Active Member

    Messages:
    173
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #12
    Well i have the same problem have you find a solution to this?
     
    redbayron2006, Sep 6, 2006 IP