Ho installato da un bel pò cutenews.
Ma ultimamente sono stato "attaccato" da un'ondata di spam.
Ovvero trovo nei post che inserisco una ventina di commenti al giorno pieni di schifezze e spam.
Ho visto che alcuni siti che utilizzano cutenews, nei commenti hanno inserito un codice di protezione, che tu devi inserire per poter inserire il commento.
Come si fa?
e soprattutto, potrebbe risolvere il problema dello spam?
Grazie mille in anticipo
Cmq, sarà la mia scarsa conoscenza dell'inglese.. ma nn sono riuscito a capire questo passaggio per l'installazione del codice di protezione:
5. If you use MULTIPLE INCLUDES go to 5a (not working with comments in popup). If you use only ONE INCLUDE go to 5b (working with comments in popup).
5a. If you use MULTIPLE INCLUDES on your page open your news file (the file where you put the Cutenews include code) and add the following code at the beginning of the file above everything else (This is NOT working with COMMENTS IN POPUP):
<?php
require('./captcha/php-captcha.inc.php'); //Change the path to your needs
?>
-----------------------------------------------------------------------------------------------------
5b. If you use only ONE INCLUDE do the following steps (This is working WITH and WITHOUT COMMENTS IN POPUP):
aa) Open your news page (the file where you put the Cutenews include code) and put this at the beginning of the file above everything else:
--------------------------------
<?PHP
ob_start();
?>
---------------------------------
bb) Find your Cutenews include code and put this above:
-------------------------------------------
$pre_include = ob_get_clean();
-------------------------------------------
So it might look like this:
--------------------------------------------------
$pre_include = ob_get_clean();
$number = 10;
$category = 2;
$template = "News";
include('cutenews/show_news.php');
--------------------------------------------------
cc) Open show_news.php and find this at the beginning of the file:
----------
<?PHP
----------
add below:
----------------------------------------------------------------------------------------------------
ob_start();
require('./captcha/php-captcha.inc.php'); //Change the path to your needs
----------------------------------------------------------------------------------------------------
dd) Find this at the end of the file:
------------------------------------------------------------------------------
?>
<!-- News Powered by CuteNews: http://cutephp.com/ -->
------------------------------------------------------------------------------