Directories SQL Query Codes Required for Deleting Listings

Discussion in 'Directories' started by amitpatel_3001, May 6, 2008.

  1. humm

    humm बहादुर बच्चा

    Messages:
    4,346
    Likes Received:
    850
    Best Answers:
    0
    Trophy Points:
    310
    #21
    Consider installing the Spam Guard Mod Amit. :D Its doesn't bring in any nonsense spam submissions. ;)
     
    humm, May 7, 2008 IP
  2. mikey1090

    mikey1090 Moderator Staff

    Messages:
    15,869
    Likes Received:
    1,055
    Best Answers:
    0
    Trophy Points:
    445
    Digital Goods:
    2
    #22
    I second that. Robs mod is amazing at keeping out the spam.
     
    mikey1090, May 7, 2008 IP
  3. EveryQuery

    EveryQuery Well-Known Member

    Messages:
    2,039
    Likes Received:
    366
    Best Answers:
    0
    Trophy Points:
    180
    #23
    Hey Amit.

    A more permanent solution to get rid of the "[URL =" mass spammer (and others) would be to add some simple code to your submit.php. I used to get hundreds of the following type of spam submissions...

    Title: ultram,soma,tramadol
    URL: http://xanax.xepharmacy.com/xanax-overnight-cod.html
    PageRank: -1
    Description:
      
    <a href=http://www.mysportsforum.com/forums/t6801-order-ambien.html>Order ambien</a> 
    <a href=http://www.care2.com/c2c/people/profile.html?pid=972495625>tramadol</a> 
    <a href=http://us.cyworld.com/Buy-phentermine>Buy phentermine</a> 
    <a href=http://forum.internetdomainmanagement.com/showthread.php?t=3215>Diazepam</a> 
    <a href=http://www.mysportsforum.com/forums/t6800-buy-ambien.html>Buy ambien</a> 
    <a href=http://www.gametab.com/forums/showthread.php?t=3336>Buy phentermine</a> 
    <a h ...
    Code (markup):
    To completely eliminate these, just open up your directory's submit.php and add the following code:

    
    // Check Description for SPAM 
    if (preg_match("/\[url=/i", $data['DESCRIPTION']))
    {
    Header("Location: http://www.amishrakefight.org/gfy/");
    return;
    }
    Code (markup):
    This adds a redirect to this page ( :D ) when someone submits a description with "[URL=" in it.

    Another code that is great against these mass spammers...

    // Check Description for SPAM 2
    if (preg_match("/\http:/i", $data['DESCRIPTION']))
    {
    Header("Location: http://www.amishrakefight.org/gfy/");
    return;
    }

    The example above redirects to the GFY page when a spammer submits a description with "http:" in it.

    P.S. I added the above codes right above the "$RegularLink_notif = true;" line in the submit.php page.
     
    EveryQuery, May 7, 2008 IP
    jitendraag likes this.
  4. jitendraag

    jitendraag Notable Member

    Messages:
    3,982
    Likes Received:
    324
    Best Answers:
    1
    Trophy Points:
    270
    #24
    That's a good tip EveryQuery :) and the redirect page is cool too :)
     
    jitendraag, May 7, 2008 IP
    EveryQuery likes this.
  5. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #25
    lol, nice idea..
    i like that page :D

    But spammers are bots, they dont see anything :p
     
    MeetHere, May 7, 2008 IP