SCRIPT_INLINE_REGEXP
SCRIPT_INLINE_REGEXP ='/<script([^>]*)>([^<]*(?:<(?!\/script>)[^<]*)*)<\/script>/smix'
Inline scripts are completely different than usual URL scripts. We need to get all available inline scripts, scrape their content and check if it needs to blocked.
Attention: This also captures usual script
tags, so you have to check this manually
via PHP if the src
tag is given!
Available matches:
$match[0] => Full string
$match[1] => Attributes string after <script
$match[2] => Full inline script