Gossamer Forum
Home : Products : Links 2.0 : Customization :

NEW MOD: Auto-Submission Blocker

(Page 1 of 2)
> >
Quote Reply
NEW MOD: Auto-Submission Blocker
I've just made a mod which ***_SHOULD_*** totally stop auto-submission and those nasty German people Smile

It uses cookies and random numbers and so I think it would be almost impossible to get around (or at least VERY tricky).

DEMO:
http://www.cyberwhispers.com/search/add.cgi

DOWNLOAD:
http://www.wiredon.net/gt/download.shtml

I would appreciate a button being added to your site if you use my mod.

BUTTONS:
http://www.wiredon.net/gt/buttons.shtml

As always, please post your comments/suggestions.

Thanks!

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: NEW MOD: Auto-Submission Blocker In reply to
Hi there, can this Mod be used with your others,
i.e
add_apider,
Modify & Passowrd

etc

Stu2000 - The Ultimate World
http://www.world-porn.org/worldhackerz/
Quote Reply
Re: NEW MOD: Auto-Submission Blocker In reply to
Yeah - it would take a little more tweaking than installing into a new or lower modified version of Links2 but it is possible.

Adding the Random Pass fields to the templates and altering site_html_templates.pl should be no problem, but the mod requires &html_print_headers; to be removed from the add subs in site_html_templates.pl because cookies are set so in add_spider.cgi for example, you'd need to print the headers otherwise it would cause an error.


Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: NEW MOD: Auto-Submission Blocker In reply to
Also, you'd need to pass the random pass from add_spider.cgi to the add form because at the moment it is generated in add.cgi but add_spider.cgi would bypass the code.

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: NEW MOD: Auto-Submission Blocker In reply to
mmmmmmm you've lost me, can you explain it in a bit more depth.
As you know I have add_spider installed and soon I am going to install modify password.
Your new Random add Mod would suit my website as I have a very dodgy audience. (lol).

So far I understand, I simply add the Add Random Mod as per usual, but it may conflict with Add_spider. What changes do I have to do to add_spider or Add_random so that they both work together.

Also whilst I am here, are you going to do a 'Super Mod'. (i.e. a one time script with all your mods inclusive.)

Just a thought.


Stu2000 - The Ultimate World
http://www.world-porn.org/worldhackerz/
Quote Reply
Re: NEW MOD: Auto-Submission Blocker In reply to
Hokay, in add_spider.cgi, where &site_html_add_form() is called, you'd need to add:

Code:
print "Content-type: text/html\n\n";
...above it.

Also you'd need to copy and paste the following subs into add_spider.cgi...

sub rand_img
sub set_cookie

Then just below where you print the header above you'd need to add:

&rand_img;
&set_cookie($rand);

I'll help you with it if you are stuck.

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: NEW MOD: Auto-Submission Blocker In reply to
Actually on second thoughts you wouldn't need to print the header as you are setting a cookie.

I just got it running on this site:

http://www.cyberwhispers.com/search/add_spider.cgi

(AddSpider, RandomPass)



Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: NEW MOD: Auto-Submission Blocker In reply to
Could your mod be adapted to work with the Add Confirm Mod? I tried to install it yesterday by tweaking the codes, but haven't succeeded yet.

Thomas
http://links.japanref.com
Quote Reply
Re: NEW MOD: Auto-Submission Blocker In reply to
Yes it should work fine.

I'm not sure what the add confirm mod looks like but I'll help you install it if you'd like. Send me a pm with your ftp info if you need my help.

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: NEW MOD: Auto-Submission Blocker In reply to
That's very kind of you. I should be able to do that myself, but lost my patience yesterday. Wink

Here's my (untouched) add.cgi file: http://links.japanref.com/add.txt and

add_confirm.html => http://links.japanref.com/add_confirm.txt

The problem I had with your mod is how to call add_confirm.html at the bottom of sub process_form.


Thomas
http://links.japanref.com
Quote Reply
Re: NEW MOD: Auto-Submission Blocker In reply to
Hm, Paul,
just followed the testlink you pasted above, did not
type in the random number and denied the cookie - and went straight through to

Success!!!.. We have received the following website for validation:

Title: test spam
URL: http://www.test.de
Description:
Contact Name: MyName
Contact Email: mymail@bla.com
Category: Adult_Toys

Was that intended? (Sorry, if I added a nonsense link to your page)

Cheers,
Denis


Quote Reply
Re: NEW MOD: Auto-Submission Blocker In reply to
Hi,

Sorry I've been editing the script recently.

If you try now it should be ok.

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: NEW MOD: Auto-Submission Blocker In reply to
Have you tried adding

<input type="hidden" name="rand" value="<%rand%>">

..into the confirmation page?

Alternatively you could get add.cgi to check the code and cookie before you get to the confirmation page.

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: NEW MOD: Auto-Submission Blocker In reply to
one thing I noticed, when you don't put in a feild such as contact name and add_error appears, the correct code is not on that page. This is just a small bug but everything else looks great.
Thanks,
Paul

Hot Web Hosting
Low cost web hosting:
http://www.thehotweb.net/webhosting
Quote Reply
Re: NEW MOD: Auto-Submission Blocker In reply to
In Reply To:
Alternatively you could get add.cgi to check the code and cookie before you get to the confirmation page.
Thanks for your suggestions, Paul. That's what I tried to do, but I failed in adding the appropriate codes into the sub process_form routine to call add_confirm.html.

Thomas
http://links.japanref.com
Quote Reply
Re: NEW MOD: Auto-Submission Blocker In reply to
Hi hacker,

It isn't a bug.

The code isnt the same on the error page and this is done on purpose to make the code truly random so they have to enter it again.

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Auto-Submission Block: What's the Status?er In reply to
I haven't heard anything new about this mod. I would like to try it out and see how it works, but when I request it on your page I get a message about "These mods are no longer available because of some forum members"? Why is that?

Quote Reply
Re: Auto-Submission Block: What's the Status?er In reply to
In the last few weeks or so, some moderators and members have been getting quite a lot of unnecessary grief. So I think, in Paul's case enough was enough, why should someone bend over nackwards helping people out, creating new mods etc etc and then get slated for it. This is probabally an issue I would bring up with Paul personally, but what I have seen through these forums, is that a lot of people are crying out for his mods, whether or not he will rethink the matter, is entirely his call, but Paul if you do, get your Stats mod back (please)

Quote Reply
Re: Auto-Submission Block: What's the Status?er In reply to
I agree with Paul's decision. I have just recently ccreated a couple simple CGI scripts. I'm so they were simple but took me a long time and a lot of hard work. Well I gave a few people the scripts and couple started putting me down. This sort of thing just discurages me and sometimes I feel like I shouldn't bother, or make my scripts non free.
Good Luck,
Paul

Hot Web Hosting
Low cost web hosting:
http://www.thehotweb.net/webhosting
Quote Reply
Re: [Denis] NEW MOD: Auto-Submission Blocker In reply to
Hi,

I installed this and it works fine. I get a lot less spam daily.

Except for this person:

Quote:
IP: 217.5.87.154
Remote Port: 58585
Remote Host:
Referer: http://www.gran-canaria-info.com/
Random Code:
As you can see, I've inserted the random code in the e-mail sent to me, as I was getting suspicious about some additions still looking like spam to me. And indeed, if I go to my site, I cannot add a site without the random code, and it puts it in the mail. Somehow, this person was able to get a link added without using the random code.Crazy

But how?

Lex

Quote Reply
Re: [Lex] NEW MOD: Auto-Submission Blocker In reply to
Awww darn.

I must be losing my mind. I just checked the zip file for download at WiredON and it isn't using the most recent code.

I'm always forgettting to update those zips.

I made some changes that should be impossible to get around without visiting your site to add resources but it seems like I forgot to update the zip. I think I have the code on another site so I'll go and find it and update the zip. I'll post here when done....

Last edited by:

RedRum: Oct 9, 2001, 6:09 AM
Quote Reply
Re: [RedRum] NEW MOD: Auto-Submission Blocker In reply to
Good to know there is a solution!Smile

Lex
Quote Reply
Re: [Lex] NEW MOD: Auto-Submission Blocker In reply to
Ok its updated on the download page.

Let me know if you have any trouble as there is a chance (due to all the checks that occur) that you may encounter trouble adding - although I have it working on my site but phantom things can happen.

It will create temp files in the same directory as add.cgi so you may wish to run this code by cron every day or so.....

Code:
#!/usr/bin/perl

use Cwd;
use strict;
use CGI qw(:standard);
use CGI::Carp qw(fatalsToBrowser set_message);

BEGIN {
sub handle {
print"Error: $_[0]";
}
set_message(\&handle);
}

&main;

sub main {

my $dir = cwd;
my (@files) = ();
my (@tmp_files = ();

opendir(DIR, $dir) || &err("Couldn't open dir : $!");
@files = readdir(DIR);
closedir(DIR);

@tmp_files = grep { /^\d{9}\.txt$/ } @files;

print header;

foreach (@tmp_files) {
unlink("$dir/$_") || &err("Couldn't unlink $_ : $!");
print "$dir/$_ : DELETED<br>";
}

}


sub err {

print header;
print $_[0];
exit;

}
Quote Reply
Re: [RedRum] NEW MOD: Auto-Submission Blocker In reply to
Well...

sofar, it works (no phantom stuff happening).

It'd be great if it really does stop all the spam!

Thanks a lot!

Lex
Quote Reply
Re: [Lex] NEW MOD: Auto-Submission Blocker In reply to
Cool.

You've tested a few times and it seems ok?
> >