Author Topic: Dumping a squatter  (Read 1524 times)

0 Members and 1 Guest are viewing this topic.

Offline 4wd

  • Forecaster
  • *****
  • Posts: 378
    • North York Moors weather
Dumping a squatter
« on: April 04, 2012, 09:25:20 AM »
Some people seem to like leaving my (weather display) screen shot page open most of the day which I don't mind too much since bandwidth isn't an issue.
However I've got someone apparently from Algeria has been on it for 48 hours solid.
The page refreshes every minute so that's a lot of traffic.
I suspect it's somehow been left open on an unattended PC
Is there a way to change the page so after (say) an hour they get dropped off?
I's fairly basic html done with MS Frontpage, no php.

Offline Randall Kayfes

  • Weather - Photography - Astronomy - Computer Admin
  • Forecaster
  • *****
  • Posts: 1949
    • Arizona Kaymann
Re: Dumping a squatter
« Reply #1 on: April 06, 2012, 10:54:04 AM »
Check your router and you should be able to shut them down (IP FIlter).  As far as a timer that would be a pretty expensive router purchase (they do make them).  You should be able to purchase a software based firewall that can do this (price varies with capabilities).
« Last Edit: April 06, 2012, 11:05:30 AM by kaymann »



Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Dumping a squatter
« Reply #2 on: April 06, 2012, 02:20:10 PM »
You could change your
Code: [Select]
  <meta http-equiv=refresh content=60>
to
Code: [Select]
  <meta http-equiv=refresh content=300>
to change the refresh interval to 5 minutes.

And/or, you could install a .htaccess to block them from your site entirely like
Code: [Select]
<FilesMatch "(.*)">
Order Allow,Deny
Allow from all
Deny from xxx.xxx.xxx.xxx
</FilesMatch>
replacing the xxx.xxx.xxx.xxx with the full (or partial) IP address of the Algerian accesses.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline 4wd

  • Forecaster
  • *****
  • Posts: 378
    • North York Moors weather
Re: Dumping a squatter
« Reply #3 on: April 07, 2012, 02:52:05 AM »
Useful info there thanks.
I'm less concerned than I was as they are behaving more like a 'real' user now although still often have the page open for hours at a time but not overnight.
The webhost has unlimited bandwidth but if I look at the site stats there is so much of it full of this one visitor!

I suppose it could be someone with connection to the area maybe even on holiday keeping an eye on weather at home.