What is Boxtrapper whitelist syntax?
What is the Boxtrapper whitelist syntax?
Specifically, what characters require an escape character of back-slash (/)?
We have checked cpanel docs, and on the Internet, from a 3rd party, the only thing we found was
"When you manually enter line items in your white list, you must be very careful to add the "escape" character \ (backslash) preceding ANY character other than A-Z,a-z,0-9 or space. This includes * @ . -"
From what we are seeing, it does not seem like an escape character is needed for a hyphen, "-" and underscore, "_".
Can someone please paste here a list of ALL characters that need an escape character, and if cpanel could please update the future documentation with this information, it would be appreciated.
-
Hello, Per the option, the BoxTrapper list should contain one entry per line. Each entry should be formatted as a Perl regular expression. Thus, you'd simply need to ensure the entries are valid Perl regular expressions when adding them to the interface. [QUOTE="Web Hosting With $1, post: 2446007, member: 874611">From what we are seeing, it does not seem like an escape character is needed for a hyphen, "-" and underscore, "_".
Escapes should not be required for those characters, but here's a third-party URL discussing when to escape characters that you may find helpful: Regex - Should hyphens be escaped? Regex Letters, Numbers, Dashes, and Underscores A more in-depth guide is available at: perlre - perldoc.perl.org Thank you.0 -
[QUOTE="cPanelMichael"> Regex - Should hyphens be escaped? Regex Letters, Numbers, Dashes, and Underscores A more in-depth guide is available at: perlre - perldoc.perl.org
Thanks.1
Please sign in to leave a comment.
Comments
2 comments