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
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