Control M characters – CTRL-M

Home Forums BulletProof Security Pro Control M characters – CTRL-M

This topic contains 1 reply, has 1 voice, and was last updated by  AITpro Admin 3 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18644

    AITpro Admin
    Keymaster

    [Question Copied from BPS free plugin forum on wordpress.org]

    https://wordpress.org/support/topic/bulletproof-security-pro-a-file-has-been-sent-to-quarantine-just-after-custo?replies=2#post-6144687

    I did just two Custom Code Settings as first step on new Website.
    Item-A. CUSTOM CODE REQUEST METHODS FILTERED:
    Item-B. CUSTOM CODE BOTTOM HOTLINKING/FORBID COMMENT SPAMMERS/BLOCK BOTS/BLOCK

    【On Item-B】
    1. Copy and past Custom Code to block spam-IP.

    #Add Bocking IP
    Order Allow,Deny
    Deny from 46.119.35.
    Deny from 46.119.45.
    Deny from 91.236.74.
    Deny from 93.182.147.
    Deny from 93.182.187.
    Deny from 94.27.72.
    Deny from 94.27.75.
    Deny from 94.27.76.
    Deny from 193.105.210.
    Deny from 195.43.128.
    Deny from 198.144.105.
    Deny from 199.15.234.
    Allow from all

    2. Clicked Save Root Custom Code.
    3. Go to the BPS Security Modes page and click the Root Folder BulletProof Mode Activate button.

    Soon, l go to root .htaccess file by TeraTerm SSH.
    Then I look at as follows : Added ^M

    # CUSTOM CODE BOTTOM HOTLINKING/FORBID COMMENT SPAMMERS/BLOCK BOTS/BLOCK IP/REDIRECT CODE
    Order Allow,Deny^M
    Deny from 46.119.35.^M
    Deny from 46.119.45.^M
    Deny from 91.236.74.^M
    Deny from 93.182.147.^M
    Deny from 93.182.187.^M
    Deny from 94.27.72.^M
    Deny from 94.27.75.^M
    Deny from 94.27.76.^M
    Deny from 193.105.210.^M
    Deny from 195.43.128.^M
    Deny from 198.144.105.^M
    Deny from 199.15.234.^M
    Allow from all^M

    After few minutes, I received Mail such as A file has been sent to Quarantine/.htaccess file. So cleared Costom Code on step 1 and thru to step-4, then stopped mail. No ^M seen on root .htaccess file. It was tryed Setting several times, allways same results. Is there any mistake Custom Code setting ?

    #18645

    AITpro Admin
    Keymaster

    htaccess code MUST be in ASCII or text mode.  You should use ONLY Notepad or Notepad++ or copy directly from the root htaccess file when copying htaccess code to or from BPS Pro Custom Code.  If you use any other Word Processing application such as Microsoft Word then Control M characters will be added to the htaccess code.

    You should only edit your htaccess file using the BPS Pro tools.  htaccess File Editor and Custom Code.  If you edit your htaccess files outside of BPS Pro then they will be quarantined since this will be seen as a possible hacker editing your htaccess files.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.