Gossamer Forum
Home : Products : Links 2.0 : Customization :

Re: [SevenSpirits] Email Address Blocking

Quote Reply
Re: [SevenSpirits] Email Address Blocking In reply to
I think I should explain how it works:

Avoid entries in special categories:
Code:
&check_exclude($in{'Kategorie'});
This is a regular function in Links 2.0.


Block email adresses:

This calls a sub and passes the email adress to the sub:
Code:
&spam_exclude($in{'Email'});


Code:
sub spam_exclude {

# my ($badmail gets the value of $in{'Email'} /
# the email adress we want to block

my ($badmail) = shift;


# Not necessary - but nice:
# $antispam is the URL of an HTTP 404 Error Message Site
# Especially useful for Auto Soft Submit Software

my ($antispam) = "http://www.your-forum.de/404.html";
# Blanko Spam Eintrag : || $badmail eq ""

# In this part you must enter unwanted
# email adresses manually
# don`t forget to mask the at: \@
# example: abc\@spamdomain.com

# Some examples:
if ( $badmail eq "...\@very-funny-videos.com"
|| $badmail eq "...\@yahoo.com"
|| $badmail eq "...\@spamarrest.com"
|| $badmail eq "...\@jesterware.co.uk"
)

# All variables will be cleared:
{
$in{'Titel'} = "";
$in{'DownloadURL'} = "";
$in{'Kategorie'} = "";
$in{'KurzBeschreibung'} = "";
$in{'Beschreibung'} = "";
$in{'Image'} = "";
$in{'Dateigroesse'} = "";
$in{'Version'} = "";
$in{'Betriebssystem'} = "";
$in{'Lizenz'} = "";
$in{'Preis'} = "";
$in{'Sprache'} = "";
$in{'Name'} = "";
$in{'Email'} = "";
$in{'Website'} = "";

# $status is cleared
$status = "";

# Error message:
# (In this case I did not use $antispam)
print "Location: http://www.your-forum.de/404.html\n\n";
}

else {$status = "ok";}
}


.


Andreas

Dr.Windows








Subject Author Views Date
Thread Email Address Blocking LordStryfe 8791 Feb 23, 2007, 2:30 PM
Thread Re: [LordStryfe] Email Address Blocking
Karl 8690 Feb 28, 2007, 12:20 AM
Thread Re: [Karl] Email Address Blocking
LordStryfe 8708 Feb 28, 2007, 6:00 AM
Post Re: [LordStryfe] Email Address Blocking
Karl 8769 Feb 28, 2007, 11:02 AM
Thread Re: [Karl] Email Address Blocking
Matthias70 8701 Mar 1, 2007, 11:01 AM
Thread Re: [Matthias70] Email Address Blocking
Karl 8699 Mar 1, 2007, 10:54 PM
Thread Re: [Karl] Email Address Blocking
Matthias70 8733 Mar 2, 2007, 10:21 AM
Thread Re: [Matthias70] Email Address Blocking
LordStryfe 8461 Jul 8, 2008, 5:11 AM
Thread Re: [LordStryfe] Email Address Blocking
SevenSpirits 8388 Jul 19, 2008, 2:28 PM
Post Re: [SevenSpirits] Email Address Blocking
SevenSpirits 8374 Jul 24, 2008, 5:37 AM