Disable counting image views for a certain user/IP address Disable counting image views for a certain user/IP address
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Disable counting image views for a certain user/IP address

Started by Fero, October 08, 2003, 02:48:01 AM

Previous topic - Next topic

0 Members and 5 Guests are viewing this topic.

Fero

Hi all!

In most viewed images I would like to disable me from counting my views. I guess it could be done by blocking IP addresses from which I access my site. Can anyone help?

Also, where can I found info how to repair coppermine link at my website.

Thanks

Fero Bednar

Wildlife and Nature Photography
www.wnp.sk

Joachim Müller

I moved your post here because this is actually a feature request...

Concerning the repair of the link: the next version will have the correct link in it; we will not provide a fix for the current version, because telling people how to fix it would mean telling people how to remove it...
This has been asked a lot, thanks for not searching the board...

GauGau

Fero

Thanks GauGau, the problem is that I have customized coppermine 1.1.0 so much taht I wan't be able simple upload new files from 1.2.0 version. This is not solution for me. What if I send you files you need and you change it for me. You must understand that having a broken link on a site is not very professional, and I don't want to remove it from my site, I am fair and I agree that coppermine deserves a link,

may be I would change it to "Powered by customized Coppermine gallery"

Thanks,

Fero

gtroll

replace this line in your displayimage.php

if ($album != "lasthits" && !in_array($pid, $USER['liv']) && isset($HTTP_COOKIE_VARS[$CONFIG['cookie_name'] . '_data']))

with
if ($album != "lasthits" && !in_array($pid, $USER['liv']) && isset($HTTP_COOKIE_VARS[$CONFIG['cookie_name'] . '_data'])&&(strstr($_SERVER["REMOTE_HOST"], "000.000")))

where 000.000 is the first set of numbers of your IP
disclaimer: This is not tested , always back up your files, your server may not report the correct IP especially if you use a proxy server (like aol)

Regarding your custom code, that is not our problem, you'll have to apply your customization yourself to the (coming) new release.
Changing the copyright code yourself voids your license of coppermine and may open you up to legal problems....