Remove ?version From Cs

hello,

anyone have an idea how to remove this for security reasons.

redirect ?

hello,

anyone have an idea how to remove this for security reasons.

redirect ?

You need to edit the file init.php which is in the main directory where you have cscart installed

Find this:

if (isset($_REQUEST['version'])) {
    die(PRODUCT_NAME . ' ' . PRODUCT_VERSION . ' ' . (PRODUCT_STATUS != '' ? (' (' . PRODUCT_STATUS . ')') : '') . (PRODUCT_BUILD != '' ? (' ' . PRODUCT_BUILD) : '') . '');
}

and replace with:

/*if (isset($_REQUEST['version'])) {
    die(PRODUCT_NAME . ' ' . PRODUCT_VERSION . ' ' . (PRODUCT_STATUS != '' ? (' (' . PRODUCT_STATUS . ')') : '') . (PRODUCT_BUILD != '' ? (' ' . PRODUCT_BUILD) : '') . '');
}*/

hello,

anyone have an idea how to remove this for security reasons.

redirect ?

What is the security threat?

Every information can be a security risk. I’m aware that the current cs has no issuses, but i don’t want to left this posibility visible or callable. I’m paranoid type :slight_smile:
Second. I don’t want to let people at all what system I’m running on :slight_smile:

Thank you for sharing the tip :slight_smile: