Thread: [Phpgedview-talk] Disabling Calendar
Brought to you by:
canajun2eh,
yalnifj
From: Dick M. <di...@fo...> - 2008-05-10 10:44:02
|
Hello, I've got a problem with having my phpgedview site being recursively copied. It seems to happen about once a week. It's not logged-in so the data is not a problem. The difficulty is that when the calendar is copied it becomes an infinite download; there is always a next year. I need to stop this because of the bandwidth being used. The obvious way is to remove the calendar altogether from the main page (when not logged-in). How would this best be done? Alternatively restricting the minimum and maximum years displayed by the calendar would do the trick. Is there a way to configure this? Any help appreciated. Thanks Dick |
From: John F. <Joh...@ne...> - 2008-05-10 15:59:30
|
Hi Dick, If you don't want the recursive copying to happen to can try blocking the offending program by IP address either through the PGV feature or using a .htaccess file. Most of the features can be disabled by removing the file. So in this case, you should be able to remove the calendar by removing the calendar.php file from your site. You might also need to edit the toplinks.html file in your theme if the menu item doesn't automatically go away after removing the file. --John > -----Original Message----- > From: php...@li... [mailto:phpgedview- > tal...@li...] On Behalf Of Dick Middleton > Sent: Saturday, May 10, 2008 4:44 AM > To: php...@li... > Subject: [Phpgedview-talk] Disabling Calendar > > Hello, > > I've got a problem with having my phpgedview site being recursively > copied. It seems to happen about once a week. It's not logged-in so > the data is not a problem. The difficulty is that when the calendar is > copied it becomes an infinite download; there is always a next year. > > I need to stop this because of the bandwidth being used. > > The obvious way is to remove the calendar altogether from the main page > (when not logged-in). How would this best be done? > > Alternatively restricting the minimum and maximum years displayed by the > calendar would do the trick. Is there a way to configure this? > > Any help appreciated. Thanks > > Dick > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/jav > aone > _______________________________________________ > Phpgedview-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpgedview-talk |
From: Dick M. <di...@fo...> - 2008-05-10 19:25:00
|
John Finlay wrote: > If you don't want the recursive copying to happen to can try blocking the offending program by IP address either through the PGV feature or using a .htaccess file. I'm blocking in the firewall at the moment but it's not a good solution as it requires intervention (finding the IP address). > Most of the features can be disabled by removing the file. I don't want to remove the feature for logged-in users. > So in this case, you should be able to remove the calendar by removing the calendar.php file from your site. > You might also need to edit the toplinks.html file in your theme if the menu item doesn't automatically > go away after removing the file. The calendar disappears if I remove the section in toplinks.php - thanks for that. What can I test so it only does it when nobody is logged-in? Dick |
From: Dick M. <di...@fo...> - 2008-05-10 19:43:14
|
Dick Middleton wrote: > John Finlay wrote: >> So in this case, you should be able to remove the calendar by removing the calendar.php file from your site. > > You might also need to edit the toplinks.html file in your theme if the menu > item doesn't automatically > > go away after removing the file. > > The calendar disappears if I remove the section in toplinks.php - thanks for > that. What can I test so it only does it when nobody is logged-in? Actually a better solution, possibly, is to make getCalendarMenu return empty if the user is not logged in. That's more likely to work for all themes. I still would like to know what to test for that condition. Is it one of the $PRIV_* variables? Dick |
From: John F. <Joh...@ne...> - 2008-05-12 14:59:30
|
Hi Dick, In the includes/menu.php, you will find a method in the MenuBar class called "getCalendarMenu". To disable the menu have that function return null when a user is not logged in. Something like this: if (!PGV_USER_NAME) return null; If the program they are using has a consistent "User-Agent" header then you can also try blocking it by adding it to the "$worms" array on line 104 of includes/session.php. --John > -----Original Message----- > From: php...@li... [mailto:phpgedview- > tal...@li...] On Behalf Of Dick Middleton > Sent: Saturday, May 10, 2008 1:43 PM > To: All About PhpGedView > Subject: Re: [Phpgedview-talk] Disabling Calendar > > Dick Middleton wrote: > > John Finlay wrote: > > >> So in this case, you should be able to remove the calendar by removing > the calendar.php file from your site. > > > You might also need to edit the toplinks.html file in your theme if > the menu > > item doesn't automatically > > > go away after removing the file. > > > > The calendar disappears if I remove the section in toplinks.php - thanks > for > > that. What can I test so it only does it when nobody is logged-in? > > Actually a better solution, possibly, is to make getCalendarMenu return > empty if > the user is not logged in. That's more likely to work for all themes. > I > still would like to know what to test for that condition. Is it one of > the > $PRIV_* variables? > > Dick > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/jav > aone > _______________________________________________ > Phpgedview-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpgedview-talk |
From: Dick M. <di...@fo...> - 2008-05-13 09:46:03
|
John Finlay wrote: > Hi Dick, > > In the includes/menu.php, you will find a method in the MenuBar class called "getCalendarMenu". > > To disable the menu have that function return null when a user is not logged in. Something like this: > if (!PGV_USER_NAME) return null; > > If the program they are using has a consistent "User-Agent" header then you can also try blocking it by adding it to the "$worms" array on line 104 of includes/session.php. Thanks John. Dick |
From: waldo k. <wki...@wi...> - 2008-05-10 17:51:57
|
Dick Middleton wrote: > Hello, > > I've got a problem with having my phpgedview site being recursively > copied. It seems to happen about once a week. It's not logged-in so > the data is not a problem. The difficulty is that when the calendar is > copied it becomes an infinite download; there is always a next year. > > I need to stop this because of the bandwidth being used. what or who is copying your site like this? if it is google or one of the other well behaved spiders, then use the robots.txt file in the root of your site to tell them to stay out of that area and/or calendar.php file ;) -- _\/ (@@) Waldo Kitty, Waldo's Place USA __ooO_( )_Ooo_____________________ telnet://bbs.wpusa.dynip.com _|_____|_____|_____|_____|_____|_____ http://www.wpusa.dynip.com ____|_____|_____|_____|_____|_____|_____ ftp://ftp.wpusa.dynip.com _|_Eat_SPAM_to_email_me!_YUM!__|_____|_____ wkitty42 -at- alltel.net --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 080510-0, 05/10/2008 Tested on: 5/10/08 13:51:45 avast! - copyright (c) 1988-2008 ALWIL Software. http://www.avast.com |
From: Dick M. <di...@fo...> - 2008-05-10 19:11:35
|
waldo kitty wrote: >> I've got a problem with having my phpgedview site being >> recursively copied. It seems to happen about once a week. It's not >> logged-in so the data is not a problem. The difficulty is that when >> the calendar is copied it becomes an infinite download; there is >> always a next year. >> >> I need to stop this because of the bandwidth being used. > > what or who is copying your site like this? if it is google or one of > the other well behaved spiders, then use the robots.txt file in the root > of your site to tell them to stay out of that area and/or calendar.php > file ;) No it's not a well behaved robot. It's coming from a dial-up address - it's also a bit dumb - why would they want gigabytes of empty calendar. I've blocked it in the firewall a couple of times but of course with dial-up the address keeps changing. What's amazing is they keep trying every few seconds for several days after their IP has been blocked. Dick |