DGRL Posted September 7, 2016 Share Posted September 7, 2016 (edited) Hi everyone Is there someone willing enough to tell me how to remove the Powered by prestashop from the http header and als how to change the cookie name? See example HTTP/1.1 200 OKDate: Wed, 07 Sep 2016 13:02:09 GMTServer: XXXX-Powered-By: XXXP3P: CP="XXX"Powered-By: PrestaShopSet-Cookie: PrestaShop-XXX; expires=Wed, 07-Sep-2016 21:02:09 GMT; path=/; domain=XXX; httponlyVary: Accept-EncodingContent-Type: text/html; charset=utf-8Content-Length: 134446Keep-Alive: timeout=5, max=99Connection: Keep-Alive Kind regards, DGRL Edited September 12, 2016 by DGRL (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted September 8, 2016 Share Posted September 8, 2016 It's line 1001 (in PrestaShop v1.6.1.6) of classes/FrontController.php that adds the Powered-By: PrestaShop: header('Powered-By: PrestaShop'); And line 76 (in PrestaShop v1.6.1.6) of classes/Cookie.php that sets the name of the cookie: $this->_name = 'PrestaShop-'.md5(($this->_standalone ? '' : _PS_VERSION_).$name.$this->_domain); Of course, you'll have to clear your cookies after changing this line. 2 Link to comment Share on other sites More sharing options...
DGRL Posted September 8, 2016 Author Share Posted September 8, 2016 Rocky thanks :-) 1 Link to comment Share on other sites More sharing options...
petter5 Posted April 19, 2019 Share Posted April 19, 2019 On 9/8/2016 at 6:25 AM, rocky said: It's line 1001 (in PrestaShop v1.6.1.6) of classes/FrontController.php that adds the Powered-By: PrestaShop: header('Powered-By: PrestaShop'); And line 76 (in PrestaShop v1.6.1.6) of classes/Cookie.php that sets the name of the cookie: $this->_name = 'PrestaShop-'.md5(($this->_standalone ? '' : _PS_VERSION_).$name.$this->_domain); Of course, you'll have to clear your cookies after changing this line. It seems that FrontController.php is located in classes/controller/FrontController.php and not classes/FrontController.php Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now