Posted in site bugs
1696
5:15 am, February 10, 2021
 

so i guess i will have to re-think my comments strategy

so i wrote a quick and well not that spam free (apparently) comment system for this site.

while i was adding it inbetween test comments i found there was already spam being added, before i had even finished the code!

I had already added google recapcha to it, but i did not do the call back to check if the recap was successfull, so the bots must be bypassing it using another method. 

No actual real comments have yet been added. 

I might have to just disable it until i figure out how to stop the spam. 

I have noticed the same kind of comment spamming happening on wordpress sites as well so its not just me. 

Are people really that desperate for spammy back links?

I will try adding a spam score function, to check the comments for dodgy keywords, as i get more spam, i can add to the filter to make it more accurate. 

i have added that function to the comments add page, it seems to work quite well, if it finds 2 of the words in the array, it just returns the spam score rather than actually adding the comment. 

Now ill just monitor it and see if any new spam comments get throught the filter. 

View Statistics
This Week
50
This Month
224
This Year
172

No Items Found.

Add Comment
Type in a Nick Name here
 
Search Articles
Search Articles by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
“We ought to take outdoor walks in order that the mind may be strengthened and refreshed by the open air and much breathing.".
Seneca
Random CSS Property

min-inline-size

The min-inline-size CSS property defines the horizontal or vertical minimal size of an element's block, depending on its writing mode. It corresponds to either the min-width or the min-height property, depending on the value of writing-mode.
min-inline-size css reference