Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

prevent adding erotic-sites

Quote Reply
prevent adding erotic-sites
Hallo, i want to prevent adding erotic-sites [err] by checking some words
in add.cgi

I am using the following codes in my script:
if ($in->param('Title'))=~/(sex|porn|porno|ficken|Titten|peepshow|erotik|erotic|xxx)/i)

&site_html_error error => "Forbidden" $dynamic);
return;

if ($in->param('URL'))=~/(sex|porn|porno|ficken|Titten|peepshow|erotik|erotic|xxx)/i)

&site_html_error error => "Forbidden" $dynamic);
return;


if ($in->param('Description'))=~/(sex|porn|porno|ficken|Titten|peepshow|erotik|erotic|xxx)/i)

&site_html_error error => "Forbidden" $dynamic);
return;


under: Check the referer

I have no idea, why its not works.
Any ideas or suggestions are greatly appreciated.

Thanks in advance.
danielimc


Subject Author Views Date
Thread prevent adding erotic-sites danielimc 2865 Jul 18, 2001, 5:37 AM
Post Re: prevent adding erotic-sites
Stealth 2803 Jul 18, 2001, 6:06 AM
Thread Re: prevent adding erotic-sites
danielimc 2786 Jul 20, 2001, 4:11 AM
Post Re: prevent adding erotic-sites
Stealth 2756 Jul 20, 2001, 10:14 AM