How to stop these damn spam submissions

Discussion in 'Directories' started by grooveman, Aug 1, 2008.

  1. #1
    I am running the free version of php link directory version 2.1.2. Lately I have been overrun with these info domain spam submissions that put dozens of URL's in the description area and they are all xxxusa.info or some info domains. They all begin with Thanks, or nice site or something like that.
    Is there a way to stop these fuggin bastages from spamming my directory with these submissions? I have the site www.premiumdirectory.org set up for nothing but paid links even did away with the free recip and I use captcha as well but they are still getting through. :mad:
     
    grooveman, Aug 1, 2008 IP
  2. zurpit.com

    zurpit.com Peon

    Messages:
    1,461
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Maybe change the field names to something unusual. That would give thier scripts a hard time auto filling the forms.
     
    zurpit.com, Aug 1, 2008 IP
  3. C.Whyte

    C.Whyte Peon

    Messages:
    802
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Best place to post would be the PHPLD forum board. The admin "David" there has a couple solutions to spam (but I'm not sure if he will have anything for 2.1.2... I think it's up to v3.3 now lol! Maybe just an update would stop the spam?
     
    C.Whyte, Aug 1, 2008 IP
  4. grooveman

    grooveman Peon

    Messages:
    595
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks I'll try there.
     
    grooveman, Aug 1, 2008 IP
  5. samehzone

    samehzone Guest

    Best Answers:
    0
    #5
    Do like this:

    Make a copy of /submit.php and name it /submit2.php
    Make a copy of /templates/submit.tpl and name it /templates/submit2.tpl

    (In the changes replace domain.com with your domain.)

    Open /submit.php

    At the very top, replace

    HTML Code:

    <?php

    With the following:

    HTML Code:

    <?php
    $Referer = getenv("HTTP_REFERER");
    if ($Referer == "http://www.domain.com/submit.php") {
    echo "<script>alert('Spam protection!');window.location='http://www.domain.com';</script>";
    exit();
    }
    if ($Referer == "") {
    echo "<script>alert('Spam protection!');window.location='http://www.domain.com';</script>";
    exit();
    }

    Open /submit2.php

    At the very top, replace

    HTML Code:

    <?php

    With the following:

    HTML Code:

    <?php
    $Referer = getenv("HTTP_REFERER");
    if ($Referer != "http://www.domain.com/submit.php") {
    echo "<script>alert('Spam protection!');window.location='http://www.domain.com';</script>";
    exit();
    }

    Replace:

    HTML Code:

    echo $tpl->fetch('submit.tpl', $id);

    With:

    HTML Code:

    echo $tpl->fetch('submit2.tpl', $id);

    Open /captcha.php

    At the very top, replace

    HTML Code:

    <?php

    With the following:

    HTML Code:

    <?php
    $Referer = getenv("HTTP_REFERER");
    if ($Referer == "http://www.domain.com/captcha.php") {
    echo "<script>alert('Spam protection!');window.location='http://www.domain.com';</script>";
    exit();
    }
    if ($Referer == "") {
    echo "<script>alert('Spam protection!');window.location='http://www.domain.com';</script>";
    exit();
    }


    Open /templates/submit.tpl

    Find:

    HTML Code:

    <form method="post" action="">

    Replace with:

    HTML Code:

    <form method="post" action="submit2.php">

    Open /templates/submit2.tpl

    Find:

    HTML Code:

    <form method="post" action="">

    Replace with:

    HTML Code:

    <form method="post" action="submit.php">
     
    samehzone, Aug 1, 2008 IP
  6. WallaceYeung

    WallaceYeung Notable Member

    Messages:
    3,377
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    230
    Digital Goods:
    1
    #6
    @samehzone,
    it's one of the proper methods that change the submit.php page to a custom one. :)
     
    WallaceYeung, Aug 1, 2008 IP
  7. brian65

    brian65 Active Member

    Messages:
    1,172
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    88
    #7
    This is a good way of discouraging automatic, spam submissions as is the earlier field name changing suggestion.
     
    brian65, Aug 1, 2008 IP
  8. rap8557

    rap8557 Well-Known Member

    Messages:
    168
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #8
    create a new email. exclusively for spam. :D
     
    rap8557, Aug 1, 2008 IP
  9. hhheng

    hhheng Banned

    Messages:
    2,633
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #9
    That's a bug which is attacked by spammers for the free version of phpld, which can bypass the captcha submit directly to your database. And upgrade to phpld v3.0 above will solve the problem.
     
    hhheng, Aug 2, 2008 IP
  10. Littile John

    Littile John Peon

    Messages:
    306
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #10
    what l have done in my directory is to charge $2 for normal links but still have free rep links
    this of course has decrease the amount of links l get per day but a least they are quailty
    and it seems to have stop the spammers
     
    Littile John, Aug 3, 2008 IP
  11. grooveman

    grooveman Peon

    Messages:
    595
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I also changed all the links to paid but that does nothing.. I will have to try another method this is getting ridiculous.
     
    grooveman, Aug 7, 2008 IP
  12. grooveman

    grooveman Peon

    Messages:
    595
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #12
    samehzone thanks for the reply and I am sure those methods will work but I am not good at programming..
     
    grooveman, Aug 7, 2008 IP
  13. grooveman

    grooveman Peon

    Messages:
    595
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Well I figured out how to change everything that samehzone recommended. I went in and did a test submission and I got a pop up box that said spam protection. Does that sound right? Link didnt go through.
     
    grooveman, Aug 7, 2008 IP
  14. gauravgrt

    gauravgrt Peon

    Messages:
    2,035
    Likes Received:
    129
    Best Answers:
    0
    Trophy Points:
    0
    #14
    i dont think this will stop spam at all, i think the coding just stops submit.php page to be directly opened. A bot can click on that link by visiting home page too. Just rethink about it.
     
    gauravgrt, Aug 7, 2008 IP
  15. grooveman

    grooveman Peon

    Messages:
    595
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Well apparently thats true because I just got two more... geez
     
    grooveman, Aug 7, 2008 IP
  16. syted

    syted Notable Member

    Messages:
    2,086
    Likes Received:
    319
    Best Answers:
    0
    Trophy Points:
    290
    #16
    I've just had my directory redesigned and had the submit page link to the Submission Rules page and from that to the page you actually submit from. I did this to make sure people had to actually visit that page rather than just tick the box to say they had. Since the new design I haven't had a single spam submission whereas before I was getting multiple spams each day.

    Go here http://www.blogdirectory.org.uk/ and click 'submit blog' to see what I'm rambling on about :)
     
    syted, Aug 7, 2008 IP
  17. thecatalyst

    thecatalyst Active Member

    Messages:
    156
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    70
    #17
    Nice looking blog directory, I would add my poor blog but I havn't updated it in a while:(.
     
    thecatalyst, Aug 7, 2008 IP
  18. grooveman

    grooveman Peon

    Messages:
    595
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #18
    I was going to submit my blog to your directory but I couldn't get past the captcha.. tried 4 times...:)
     
    grooveman, Aug 7, 2008 IP
  19. gauravgrt

    gauravgrt Peon

    Messages:
    2,035
    Likes Received:
    129
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Excellent work!

    Another way is to not allowing submission from submit.php page directly means. A user should go into deepest possible category and then click on submit.php, i have seen this in many directories and it works :)
     
    gauravgrt, Aug 8, 2008 IP
  20. syted

    syted Notable Member

    Messages:
    2,086
    Likes Received:
    319
    Best Answers:
    0
    Trophy Points:
    290
    #20
    Another spam-free day so I've taken the captcha off for now :)
     
    syted, Aug 8, 2008 IP
    mikey1090 likes this.