Advanced search  

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]

Pages: [1]   Go Down

Author Topic: "Most Viewed" abused  (Read 7269 times)

0 Members and 1 Guest are viewing this topic.

merletweb

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
"Most Viewed" abused
« on: April 10, 2005, 11:00:28 pm »

I suspect someone is trying to maniplulate my "most viewed" totals by hitting certain images over and over again. Is there a way that I can edit the totals for a given image on "most viewed"? The visitor(s) comes in on a dial-up service so blocking the ip address wouldn't work very well. Has anyone else experienced this problem?

http://www.espanolaonline.com/imagegallery/
Logged

Nibbler

  • Guest
Re: "Most Viewed" abused
« Reply #1 on: April 10, 2005, 11:15:14 pm »

You can manually edit the `hits` column in the pictures table using a db admin tool such as phpmyadmin.
Logged

merletweb

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: "Most Viewed" abused
« Reply #2 on: April 11, 2005, 04:39:10 am »

You can manually edit the `hits` column in the pictures table using a db admin tool such as phpmyadmin.

Arrrgh! Ok, I just don't know anything about mysql. I was hoping there was an easy way of doing this without learning databases. I'm willing to learn though...
Logged

tomrock

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
    • My Coppermine Gallery
Re: "Most Viewed" abused
« Reply #3 on: April 12, 2005, 03:26:02 pm »

You could also go into Admin mode, click "Edit Files" for the abused gallery and check Reset View Counter. that might be easier but of course will set the views to zero.
Logged

merletweb

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: "Most Viewed" abused
« Reply #4 on: April 12, 2005, 04:23:25 pm »

That's what I was looking for! I hadn't seen that before. Thanks! ;D
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: "Most Viewed" abused
« Reply #5 on: April 14, 2005, 10:17:28 am »

You could also go into Admin mode, click "Edit Files" for the abused gallery and check Reset View Counter. that might be easier but of course will set the views to zero.
That's what I was looking for! I hadn't seen that before. Thanks! ;D
This feature only exists in cpg1.4.x (devel version), it's not in the stable cpg1.3.2 yet.

Joachim
Logged

Nibbler

  • Guest
Re: "Most Viewed" abused
« Reply #6 on: April 14, 2005, 10:59:50 am »

It is actually in 1.3, although I hadn't realised it either :)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: "Most Viewed" abused
« Reply #7 on: April 14, 2005, 11:09:55 am »

ok, sorry for the confusion I caused:
  • both in cpg1.3.x and cpg1.4.x, you can reset the views counter per file when in editpics.php
  • only in cpg1.4.x, but not in cpg1.3.x, you can reset the views counter for all files within a particular album with one click when editing the album properties (in modifyalb.php)
HTH

Joachim
Logged

merletweb

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: "Most Viewed" abused
« Reply #8 on: April 14, 2005, 11:28:01 pm »

You could also go into Admin mode, click "Edit Files" for the abused gallery and check Reset View Counter. that might be easier but of course will set the views to zero.

Did this but ran into a problem. If the album has more than 100 photos how do you get beyond 100. Edit files only shows up to 100. ???
Logged

Nibbler

  • Guest
Re: "Most Viewed" abused
« Reply #9 on: April 14, 2005, 11:34:46 pm »

That's why there is a new option in the next version. :)

If you can get yourself into phpmyadmin, you can run:

Code: [Select]
UPDATE cpg_pictures SET `hits` = 0 WHERE aid = x
chaging cpg_ to the actual prefix chosen during installation and x to the id of the album you want to reset viewcount in. Backup your db before you do this of course :)
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.