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


Quote Reply
Re: prevent adding erotic-sites In reply to
I already posted codes in this forum that checks for bad words in fields....please search this forum for bad words...I would prefer you do this than me re-posting the codes.

Use the following search criteria:

Forum: Links SQL 1.X
Keywords: bad words Eliot
Options: And
Date Range: All posts
Hits: 250

Thank you.

Regards,

Eliot Lee Wink
http://anthrotech.com/
Quote Reply
Re: prevent adding erotic-sites In reply to
hi,

thank you for help, i have add $addultfilter to my add.cgi
and now erotic, wiil be blocked for submitting

danielimc

Quote Reply
Re: prevent adding erotic-sites In reply to
You might want to also try variations...like er-ot-ic, rotic, errotic.

Regards,

Eliot Lee Wink
http://anthrotech.com/