Hi guys,
can anyone help me please???
Is there any way I can ban an I.P address from using my site?
I noticed one I.P address seems to be using up a lot of my bandwidth this past week, nearly 7,400 hits in just five days from the same I.P address and I have no idea why!
I want to try and stop it before it gets out of control, its really unusual for my site as I dont get a large amount of traffic.
Does anyone have any idea why this is happening or what I can do to prevent it?
Thanks, MKR






steve40 posted this at 21:59—24th July 2006.
He has: 495 posts
Joined: May 2005
I had someone use my site as their homepage once. They evidently used as a desktop background also, as visit length would be sometimes 2 hours.
I just placed a small note at the bottom of my page for a few days, asking that no one use my site for a homepage or desktop background, it stopped.
MKR posted this at 22:06—24th July 2006.
He has: 3 posts
Joined: Jul 2006
Cheers Steve, I will give that a try.
Busy posted this at 09:54—25th July 2006.
He has: 6,148 posts
Joined: May 2001
to block them, make a .htaccess file if you don't all ready have one and add the url. .htaccess's contents would be:
Options +FollowSymlinks
order allow,deny
allow from all
deny from 11.22.333.444
change 11.22.333.444 with the url of the 'hogger'
<?bhb if(broken){ echo("It wasn't me
"); } ?>
Learn HTML the ez way - EzHTML.net
Some people are like slinkies, they dont really serve any purpose but they still bring a smile to your face when you push them down the stairs ...
MKR posted this at 21:51—25th July 2006.
He has: 3 posts
Joined: Jul 2006
I will have a go, cheers Busy your a star
Busy posted this at 10:18—26th July 2006.
He has: 6,148 posts
Joined: May 2001
I know
but they wont give me a spot on Hollywood blvd
*sure would be a 'busy' lil spot muhahaha*
<?bhb if(broken){ echo("It wasn't me
"); } ?>
Learn HTML the ez way - EzHTML.net
Some people are like slinkies, they dont really serve any purpose but they still bring a smile to your face when you push them down the stairs ...
RangerLord posted this at 14:15—25th April 2007.
They have: 33 posts
Joined: Aug 2005
I have a related question...
After a new site installation, my host has this .htaccess file already set up in the site's root directory:
# -FrontPage-IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
'
Like MKR above, I have a few IP's I want to block... but the "deny from all" line has me wondering, where do I list the IP's to be blocked? Do I replace the "deny from all" line, or remove it and place the "deny from 123.456.78.9" statement after the "allow from all" line?
Any help will be greatly appreciated!
R/L
pr0gr4mm3r posted this at 14:22—25th April 2007.
He has: 543 posts
Joined: Sep 2006
Just change the 'limit GET POST' to what Busy posted and add a line for each IP address that you want to block.
Hey! It compiles! Ship it!