Page 1 of 1

How to prevent javascript in textarea

Posted: Mon Jun 25, 2018 6:32 am
by johnlowim
Hi,

I'm currently trying out Atomic Basic ModSecurity in Plesk.

It does detect and prevent javascript in input text field, but not in textarea.

Greatly appreciate if you can help this novice :D

Much thanks & regards
John

Re: How to prevent javascript in textarea

Posted: Mon Jun 25, 2018 1:55 pm
by johnlowim
Oh... I think I found the answer, but please let me know if I've done it wrongly.

I added ARGS_POST|ARGS_GET in SecRule of the file 50_plesk_basic_asl_rules.conf and it works.

Previously it only works for INPUT TEXT. Now it works for TEXTAREA too.

Much thanks
John Low