Posted in site bugs
7
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
10
This Month
43
This Year
0

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 snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

Join me on Substack if you want me to send you a collection of the things i have done or found or read for the week. Or follow me on twitter if you prefer, i dont post much but i probably should!

❤👩‍💻🕹

Random Quote
I believe that success can be measured in the number of uncomfortable conversations you're willing to have.
Unknown