# Abuse

**URL:** <https://forum.kirupa.com/t/abuse/5625>\
**Category:** random\
**Created:** [September 17, 2002, 11:03pm UTC](https://forum.kirupa.com/t/abuse/5625 "2002-09-17T23:03:39Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![skidpanda](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@skidpanda](https://forum.kirupa.com/u/skidpanda)\
**Post date:** [September 17, 2002, 11:03pm UTC](https://forum.kirupa.com/t/abuse/5625/1 "2002-09-17T23:03:39Z")

</div>

Hello there,

Recently i have been recieving alot of abuse on my sites guestbook - [www.method-band.co.uk](http://www.method-band.co.uk) - Everytime someone signs the guestbook their name and IP address are sent to my email address as a notification.  
This person’s IP has stayed the same for a week now with every post, is there any standard protocol for stopping abuse like this ? can i report his/her IP to anyone that can find their email address them and ask them to stop?

I use a flash/PHP guestbook and i have no way of blocking IP’s or whatever, i’m pretty new to this so excuse anything i’m saying wrong please 🙂

Thanks for any help with this annoying problem! I dont understand why total strangers have to be so nasty and do things like that.

Cheers!

Skid :nerd:🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 18, 2002, 6:37am UTC](https://forum.kirupa.com/t/abuse/5625/2 "2002-09-18T06:37:14Z")

</div>

Sorry my friend… I’ve no answers for you. Just wanted to write to say that I empathize with you. I had a similar problem a couple years back… All I ended up doing was editing his posts every night until he got bored and stopped. That of course wont work on everyone. Good luck with it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 18, 2002, 7:19am UTC](https://forum.kirupa.com/t/abuse/5625/3 "2002-09-18T07:19:45Z")

</div>

You can do wonders with an IP address:evil:

But I am not going to get into that because my ideas are technically illegal. I used to mess with my friends comp all the time. And yes, his was the only one I messed with, I am a firm believer in treating others they way you would like to be treated and I do/will not “hack” computers without permission.

Other than that, the only think I can think of is IP Banning in PHP, but since I am still learning PHP I can’t help you out much there. I didn’t get up to that.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 18, 2002, 9:31am UTC](https://forum.kirupa.com/t/abuse/5625/4 "2002-09-18T09:31:59Z")

</div>

Ah well, I’ll just keep on deleting his posts.

Thanks :nerd: 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 18, 2002, 4:53pm UTC](https://forum.kirupa.com/t/abuse/5625/5 "2002-09-18T16:53:38Z")

</div>

I can think of a quick fix! You can ban him permanently from your site using htaccess. A few months back, I had a very similar problem (someone kept leaving dirty comments in my weblog). I denied said IP from my domain entirely and the comments have stopped ever since. If you’ve never fiddled with htaccess before: you can find a tutorial here: [htaccess tutorial . Specific instructions on IP banning [URL=http://www.freewebmasterhelp.com/tutorials/htaccess/2]here](http://www.freewebmasterhelp.com/tutorials/htaccess/).

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 18, 2002, 5:00pm UTC](https://forum.kirupa.com/t/abuse/5625/6 "2002-09-18T17:00:50Z")

</div>

Very good info to know, I get someone that sends multiple blank e-mails to me usign my e-mail form. They usually type something like “sldkfjaosidfaasdf” in the comments area and put false info in all the others. Now that I know I can use htaccess I will definitely try that out:evil:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 18, 2002, 9:56pm UTC](https://forum.kirupa.com/t/abuse/5625/7 "2002-09-18T21:56:46Z")

</div>

wow, thanks alot RenaissanceGirl, thats exactly what i need 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 18, 2002, 11:43pm UTC](https://forum.kirupa.com/t/abuse/5625/8 "2002-09-18T23:43:47Z")

</div>

yeah u should kill the bastard!! hehe…you can just block that IP can’t you? the problems come when you get people with rotating IP’s (like me :)) its hard to block them because there ip changes everytime they conect…and if you block like 210.66._._ you might block lots of people…and thats not good 🙂 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 18, 2002, 11:46pm UTC](https://forum.kirupa.com/t/abuse/5625/9 "2002-09-18T23:46:51Z")

</div>

Killing him sounds tempting, better not though… :evil:

I think my IP address rotates too, but this person’s seems to stay they same because their posts over the past week have all had the same IP.

I think its because their either on AOL or broadband, their IP’s always stay the same i think?

Cheers :nerd: 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 19, 2002, 12:35am UTC](https://forum.kirupa.com/t/abuse/5625/10 "2002-09-19T00:35:39Z")

</div>

I really had not much to say other than, PHP is very cool. lol

yea i know, im pathetic!.

BTW, if ya need an Ip ban script in php, i have one i made =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 19, 2002, 12:37am UTC](https://forum.kirupa.com/t/abuse/5625/11 "2002-09-19T00:37:20Z")

</div>

Wow that would be cool to see if you dont mind sharing ?:nerd:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 20, 2002, 6:10am UTC](https://forum.kirupa.com/t/abuse/5625/12 "2002-09-20T06:10:46Z")

</div>

i love people who do open source. Something like that should be shared… just for the sake of it. If you wouldn’t mind raydred… I’d love to have the script for that as well. I don’t currently have a use for it, but I definitely would like it in my script library.

if you’re willing to send it to me my email is [upuaut@centerspin.com](mailto:upuaut@centerspin.com)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 20, 2002, 5:59pm UTC](https://forum.kirupa.com/t/abuse/5625/13 "2002-09-20T17:59:35Z")

</div>

ooo me 2 please! If you’ve got a spare minute 🙂

[citcacca@yahoo.com](mailto:citcacca@yahoo.com)

:nerd:

PS:

I havent got a bad post since i did that .htaccess file, BIG thanks to RenaissaceGirl 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 20, 2002, 9:08pm UTC](https://forum.kirupa.com/t/abuse/5625/14 "2002-09-20T21:08:57Z")

</div>

alrighty, cool, Well so i dont forget,

could anyone who wants this script please e-mail a request (so i dont disappoint anyone =) ) and i’ll get that script to skidpanda here by this weekend… My e-mail address is [raydred@raydred.com](mailto:raydred@raydred.com) (nice and easy) =)

I love open source, and i feel that stuff like this should be shared. I’d rather help many people out and stop the bad misuse of the internet than gain monetary value for something that most people would overcharge for =)  
(if that made sense… hehe)

=)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 21, 2002, 2:35am UTC](https://forum.kirupa.com/t/abuse/5625/15 "2002-09-21T02:35:00Z")

</div>

Alrighty Guys, I got the script here for the IP ban, so no need on emailing me to ask for it (unless you’re having probs with the script).

here are the instructions:

All you have to do is to add the banned Ip’s in its own variable…

$bannedip[0] = “0.0.0.0”;  
$bannedip[1] = “0.0.0.1”;

and so on (its in the file and should be readable) =)

change the $redirect\_url to whatever url you want,  
then upload the php and whatever file you want to use it in, just put:

include(“ipban.php”);

OH and if it looks weird if you open it up in Notepad,  
use wordpad to open it (on a windows system) and you’ll see the formatting ok =)

Hope you enjoy this =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 21, 2002, 2:49am UTC](https://forum.kirupa.com/t/abuse/5625/16 "2002-09-21T02:49:57Z")

</div>

Wow Raydred. This file is incredibly simple yet complex. I would have never been able to write it myself considering I only know about half of the stuff in there (actually, maybe a little more than half).

Great job and I greatly appreciate this. I will study and learn from it:)

PS: If I am not mistaken, can’t this script also be used to allow only select peoples IP address to enter a page. Like the banned IP address can become the allow IP addressed and the redirect URL could be the page they are allowed to view, where if they are not allowed to view, it would be the default page. This is, if I am not mistaken, because if it can be used like that, I have something I want to use it for.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 21, 2002, 2:53am UTC](https://forum.kirupa.com/t/abuse/5625/17 "2002-09-21T02:53:20Z")

</div>

And you know what? Ive only been doing php for a few months, once you get it, its awesome. =)

oh and i use [php.net](http://php.net) alot for the manual, (sometimes cant remember everything) hehe =)

I hope you enjoy it =)

😉 Oh and i rewrote that from scratch too =)

and yes it could easily be turned into an “allow” ip site…

i’d just do this, on the if statment just do this…

[SIZE=1]  
if($bannedIp[$i] == $tstIp){  
do redirect…  
}else{  
do redirect away…  
}[/SIZE]

that should work =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 21, 2002, 2:57am UTC](https://forum.kirupa.com/t/abuse/5625/18 "2002-09-21T02:57:04Z")

</div>

Excellent work Raydred. I just started learning PHP like a month ago I guess. I haven’t had much time to read up on it, so I haven’t been learning for a month, just a day here and a day there when I actually have time to.

Can you recommend any good learning sources other than [php.net](http://php.net)?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 21, 2002, 3:20am UTC](https://forum.kirupa.com/t/abuse/5625/19 "2002-09-21T03:20:50Z")

</div>

Hmm other resources…

yea [phpbuilder.net](http://phpbuilder.net) is good too…

thats all i really use =) i mostly use [php.net](http://php.net) =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 21, 2002, 3:30am UTC](https://forum.kirupa.com/t/abuse/5625/20 "2002-09-21T03:30:34Z")

</div>

Thanks again Raydred=)

[Next page](https://forum.kirupa.com/t/abuse/5625.md?page=2)
