coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: edhan on September 10, 2008, 11:48:52 AM

Title: How do I remove the version in view source
Post by: edhan on September 10, 2008, 11:48:52 AM
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!
Title: Re: How do I remove the version in view source
Post by: Pascal YAP on September 10, 2008, 12:00:54 PM
First upgrade yours to 1.4.19 if you're scared about Hackers  ;D
Title: Re: How do I remove the version in view source
Post by: edhan on September 10, 2008, 12:20:50 PM
Have upgraded just now. So, how do I remove the version numbers?
Title: Re: How do I remove the version in view source
Post by: Joachim Müller on September 10, 2008, 12:58:55 PM
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.
Title: Re: How do I remove the version in view source
Post by: edhan on September 10, 2008, 01:27:29 PM
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!
Title: Re: How do I remove the version in view source
Post by: Nibbler on September 10, 2008, 03:16:53 PM
Subscribe to the announcements thread on this forum or to new download notifications at sourceforge.
Title: Re: How do I remove the version in view source
Post by: edhan on September 10, 2008, 06:15:16 PM
Thanks!