IonCube Loader

Home Forums BulletProof Security Free IonCube Loader

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #4769
    Greg
    Participant

    I have plugins and my theme requiring IonCube Loader.  I have php5.3 and IonCube activated.  It seems BPS is removing these when creating .htaccess.  I “attempted’ to add the code lines for Ion Cube in custom code area but to no avail.  Each time I create the secure .htaccess the site breaks.

    Not sure if I added the custom code correctly.  I need assistance on this

    #4773
    AITpro Admin
    Keymaster

    An ionCube Loader directive would normally go in a php.ini file unless you can use php_flag or php_value in .htaccess files for your particular Server Configuration.  You would add your ionCube Loader .htaccess  directive to the Custom Code Top text box, click the Save Root Custom Code button, go to the BPS Security Modes page and click the Root Folder BulletProof Mode Activate button.

    .htaccess file Example ONLY:  php_value zend_extension /path/to/ioncube_loader_lin_5.3.so
    custom php.ini Example ONLY:  zend_extension = /path/to/ioncube_loader_lin_5.3.so

    #4776
    Greg
    Participant

    I put the following code in th Custom Code Top box and saved it.  When I created the secure .htaccess the site still broke.

    zend_extension=/usr/php/53/usr/lib64/php/modules/ioncube_loader_lin.so
    zend_extension=/usr/php/53/usr/lib64/php/modules/ZendGuardLoader.so

    The php.ini was re-written as wel  as the .htaccess

    #4777
    Greg
    Participant

    looking at your example there needed to be something in front of zend_extension ????

    #4778
    AITpro Admin
    Keymaster

    Yes, if you want to add a directive in an .htaccess file you have to use either php_value or php_flag.  The code you added would not work in an htaccess file and would only work in a php.ini file.  Typically you would add a zend directive in a php.ini file instead of an .htaccess file.

    Most hosts do not allow you to add php_flag or php_value directives in an .htaccess file at all.  If you have a LiteSpeed Server then there is a much greater chance that this is allowed on your LiteSpeed Server.

    #4782
    Greg
    Participant

    I copied the 2 lines directly from the php.ini file.  When I click create secure .htaccess it changes my php.ini.  I do not know what to do with this because it changes it from php 5.3 to 5.2 and removes IonCube completely.  So must have to do it in htaccess …so what do I put in front of the directive.

    This is the system info

    Document Root Path: /home1/seoback1/public_html
    WP ABSPATH: /home1/seoback1/public_html/
    Parent Directory: /home1/seoback1
    Server / Website IP Address: 74.220.207.151
    Host by Address: host151.hostmonster.com
    DNS Name Server: andy.ns.cloudflare.com
    Public IP / Your Computer IP Address: 98.71.127.175
    Server Type: Apache
    Operating System: Linux
    Server API: cgi-fcgi - Your Host Server is using CGI.
    cURL: cURL Extension is Loaded
    Zend Engine Version: 2.3.0
    Zend Guard/Optimizer: Zend Guard Loader Extension is Loaded
    ionCube Loader: ionCube Loader Extension is Loaded Version: 40202
    Suhosin: Suhosin is Not Installed/Loaded
    APC: APC Extension is Not Loaded
    eAccelerator: eAccelerator Extension is Not Loaded
    XCache: XCache Extension is Loaded but Not Enabled
    Varnish: Varnish Extension is Not Loaded
    Memcache: Memcache Extension is Not Loaded
    Memcached: Memcached Extension is Not Loaded
    
    and this is the php.ini
    
    PHP Version: 5.3.23
    PHP Memory Usage: 60.34 MB
    WordPress Admin Memory Limit: 256M
    WordPress Base Memory Limit: 40M
    PHP Actual Configuration Memory Limit: 128M
    PHP Max Upload Size: 10M
    PHP Max Post Size: 10M
    PHP Safe Mode: Off
    PHP Allow URL fopen: On
    PHP Allow URL Include: On
    PHP Display Errors: Off
    PHP Display Startup Errors: Off
    PHP Expose PHP: Off
    PHP Register Globals: Off
    PHP MySQL Allow Persistent Connections: On
    PHP Output Buffering: 4096
    PHP Max Script Execution Time: 240 Seconds
    PHP Magic Quotes GPC: Off
    PHP open_basedir: not in use
    PHP XML Support: Yes
    PHP IPTC Support: Yes
    PHP Exif Support: Yes
    #4784
    AITpro Admin
    Keymaster

    If your host allows the php_value directive in .htaccess files then you would use php_value zend_extension /path/to/ioncube_loader_lin_5.3.so.  Change /path/to/ to whatever your actual Server path is.  Or if your Host does not allow php_value in an .htaccess file then you can add zend_extension = /path/to/ioncube_loader_lin_5.3.so in a custom php.ini file that you can create for your website.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.