How to create an algorithm that automatically tracks certain pages of a website?

Asked

Viewed 177 times

-1

I have a platform where people can post comments write reviews and I at this point need to create an algorithm in which track me those same areas of the site if someone write a comments less improper the same erase the system automatically without me is not keeping an eye on what people write.

I would like to know how best to do this and how to make suggestions.

2 answers

3

I don’t think tracking the page for inappropriate comments is the best option.

What you can implement is an algorithm that creates an approval queue for comments, requiring all comments to be approved by some moderator, just like Wordpress.

Another suggestion may be not to allow some comments to be posted from a list of prohibited words, thus barring when the user tries to include the comment. You can also combine this list of forbidden words with the approval queue to pre-approve comments that do not have these words.

3

This action should be done before of inserting the message into the database, that way you won’t spend resources going through an X page in X time.

pseudo-code:

if (coisa_inserida.contains('asneira'))
    nao_inserir_em_base_de_dados;
    mostrar_erro('asneiras nao sao permitidas');
}
else {
    inserir_em_base_de_dados(coisa_inserida);
    mostrar_sucesso('yay! comentario inserido!');
}

It can, however, make a system of Approval - as @gmsantos refers.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.