Posted in site bugs
1956
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
68
This Month
258
This Year
432

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


Me
Random CSS Property

@charset

The @charset CSS at-rule specifies the character encoding used in the style sheet. It must be the first element in the style sheet and not be preceded by any character; as it is not a nested statement, it cannot be used inside conditional group at-rules. If several @charset at-rules are defined, only the first one is used, and it cannot be used inside a style attribute on an HTML element or inside the <style> element where the character set of the HTML page is relevant.
@charset css reference