Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What is Boxtrapper whitelist syntax?

Discussion in 'General Discussion' started by Web Hosting With $1, Jun 20, 2017.

Tags:
  1. Web Hosting With $1

    Web Hosting With $1 Registered

    Joined:
    Jun 20, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.

    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.
     
  3. Web Hosting With $1

    Web Hosting With $1 Registered

    Joined:
    Jun 20, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    USA
    cPanel Access Level:
    Reseller Owner
Loading...

Share This Page