phpDocumentor pivotx
[ class tree: pivotx ] [ index: pivotx ] [ all elements ]

Procedural File: first_defense.php

Source Location: /first_defense.php

Page Details

First line of defense script.

This first version helps battle referer spam, comment-spam and trackback-spam.

The phrases/words that is blocked is listed in the file db/blocked_phrases.txt - one phrase per line. If the phrase is followed by a star, it's only use for blocking referer spam.

Functions
block_postedspam  [line 88]

boolean block_postedspam( )

Block 'posted' spam: In either comments or trackbacks. Returns true if checks were succesfull, false if not, dies if spam is detected.



[ Top ]
block_refererspam  [line 34]

boolean block_refererspam( )

Block referer spam. Returns true if checks were succesfull, false if not, dies if spam is detected.



[ Top ]


Documentation generated on Tue, 05 Sep 2017 01:06:01 +0200 by phpDocumentor 1.4.3