What is Boxtrapper whitelist syntax?

Web Hosting With $1

Registered
Jun 20, 2017
2
0
1
USA
cPanel Access Level
Reseller Owner
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
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.

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.