How to prevent javascript in textarea

Community support forums for the free/delayed modsecurity rules feed. There is no such thing as a bad question here as long as it pertains to using the delayed modsecurity rules feed. Newbies feel free to get help getting started or asking questions that may be obvious.
johnlowim
New Forum User
New Forum User
Posts: 2
Joined: Mon Jun 25, 2018 6:14 am
Location: Singapore

How to prevent javascript in textarea

Unread post 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
johnlowim
New Forum User
New Forum User
Posts: 2
Joined: Mon Jun 25, 2018 6:14 am
Location: Singapore

Re: How to prevent javascript in textarea

Unread post 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
Post Reply