Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Re: [Andy] SPAM in Links 2.0

Quote Reply
Re: [Andy] SPAM in Links 2.0 In reply to
Andy wrote:
If the email remains the same, you can do something like this in add.cgi:
Code:

use CGI;
my $IN = new CGI;
if ($IN->param('Contact_Email') =~ /.*\@i.ua/i) {
&site_html_add_success;
exit;
}

..just before:

Code:
eval {
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX /
($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \



That will make him think the record was added, but it won't actually submit it :) Obviously that relies on him still using the *@i.us email address when submitting.


Andy, thanks for the code, I appreciate it very much. I've updated the add.cgi file again with your code and began testing it. When I enter the SPAMMER's link information and specific email address (someone @ i.ua), the page simply refreshes and the entire fields which were typed in do not appear. Basically, the SPAMMER will not see the "Success" confirmation page, but is presented with the same blank add page. I'm using Internet Explorer v.7 and use the html templates in Links 2.0.

Last edited by:

Zoro: May 19, 2009, 9:48 PM
Subject Author Views Date
Thread SPAM in Links 2.0 Zoro 30048 May 14, 2009, 4:35 AM
Thread Re: [Zoro] SPAM in Links 2.0
Andy 29731 May 14, 2009, 6:03 AM
Thread Re: [Andy] SPAM in Links 2.0
Zoro 29727 May 14, 2009, 7:28 AM
Thread Re: [Zoro] SPAM in Links 2.0
Andy 29698 May 14, 2009, 7:41 AM
Post Re: [Andy] SPAM in Links 2.0
Zoro 29617 May 18, 2009, 8:43 PM
Thread Re: [Andy] SPAM in Links 2.0
Zoro 29614 May 19, 2009, 9:44 PM
Thread Re: [Zoro] SPAM in Links 2.0
Andy 29646 May 20, 2009, 12:02 AM
Thread Re: [Andy] SPAM in Links 2.0
Zoro 29616 May 20, 2009, 11:27 AM
Thread Re: [Zoro] SPAM in Links 2.0
Andy 29597 May 21, 2009, 1:33 AM
Thread Re: [Andy] SPAM in Links 2.0
Zoro 29482 May 27, 2009, 7:49 AM
Thread Re: [Zoro] SPAM in Links 2.0
Andy 29504 May 27, 2009, 7:56 AM
Thread Re: [Andy] SPAM in Links 2.0
Zoro 29443 Jun 2, 2009, 8:40 PM
Thread Re: [Zoro] SPAM in Links 2.0
Andy 29402 Jun 2, 2009, 11:22 PM
Thread Re: [Andy] SPAM in Links 2.0
PerlFlunkie 28907 Aug 17, 2009, 11:30 AM
Thread Re: [PerlFlunkie] SPAM in Links 2.0
Zoro 28768 Sep 6, 2009, 1:08 AM
Thread Re: [Zoro] SPAM in Links 2.0
PerlFlunkie 28718 Sep 10, 2009, 3:16 AM
Post Re: [PerlFlunkie] SPAM in Links 2.0
Zoro 23980 Mar 20, 2011, 9:52 PM