PDA

View Full Version : Using PHP to block spam..?


Finner
12-06-2006, 12:31 AM
Just been wondering if there is any way I can include php in my template pages?

Been having big spam issues and I want to try and avoid them coming in in the first place by adding a security code that has to be entered before the comment can be submitted. Comments need to be approved first, but I still have pages and pages (many actually empty, but still visible in the database) of spam :(

I'm curious as to why pixelpost is so spam prone to start with...?

Thanks!

Dennis
12-06-2006, 06:00 AM
SPAM is a global issue and does not only affect Pixelpost. In general, all systems are subjected to SPAM, especially the ones providing the possibility for leaving comments and such.

A few addons can be found for comments (Captcha and Askimet) by searching the forums.

Currently PHP is not supported in the templates. You can write an addon, replacing a specific tag with the form and stuff.

I'm curious about the system you would like to implement.

Finner
12-07-2006, 10:28 PM
I'm aware spam is global - it just seems to affect my pixelpost than any other CMS running on my server. *shakes fist* ;)

I'm using addons at the moment, and although they do catch the spam, there is still a huge build up either in both the backend and database which I find i'm constantly having to delete.

The current spam addons seem to check the messages once they have been submitted - if they're spam, then they're thrown away (but not actually removed from the database). The idea of my system is that spam isn't even submitted - a security code is there to ensure a real person is submitting a comment as they have to enter in the random numbers shown in an image - same as what's used in the search function on this site..

If the pixelpost template pages are .html, then I imagine php still wouldn't work even in a plug-in..?

GeoS
12-07-2006, 11:03 PM
You can use tags and replace them with some PHP script results or just execute code from addon without replacing any tags in template files.

austriaka
12-08-2006, 09:31 PM
...they have to enter in the random numbers shown in an image - same as what's used in the search function on this site..
Why invent the wheel again?

What you describe is called "captcha" and there is an addon for PP.
But captcha is not the "yellow of the egg" how we would say in german... Many spam robots can read them out or have found a way to surround them.
Have a look at the Akismet-Addon. It checkes the spam for you, keeps it for your control and deletes it after 7 days.

Finner
12-18-2006, 09:55 PM
Why invent the wheel again?

What you describe is called "captcha" and there is an addon for PP.


Ah, thanks! Have just had a chance to install it, will see how it goes.. :)