How do I remove the version in view source How do I remove the version in view source
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

How do I remove the version in view source

Started by edhan, September 10, 2008, 11:48:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

edhan

Hi

I am wondering how I can remove the version number when using view source for this software as it will be exposed to hacker when knowing the version you are using that has a possibility of hacking.

I can see this <!--Coppermine Photo Gallery 1.4.18 (stable)--> at the end of the page for the index before the </body></html>

I can't see to find where I can just remove the version 1.4.18 (stable).

Please advice.

Thanks!

Pascal YAP

First upgrade yours to 1.4.19 if you're scared about Hackers  ;D

edhan

Have upgraded just now. So, how do I remove the version numbers?

Joachim Müller

Edit include/functions.in.php, find$add_version_info = "<!--Coppermine Photo Gallery ".COPPERMINE_VERSION." (".COPPERMINE_VERSION_STATUS.")-->\n</body>";and comment that line out. This is a security-by-obscurity approach though that I really can't encourage. In fact I find it silly. Keep your gallery up-to-date instead of playing hide and seek.

edhan

I do agree to keep up to date but I do not receive notification for new updates. How do I activate or receive notification?

Thanks!

Nibbler

Subscribe to the announcements thread on this forum or to new download notifications at sourceforge.