# 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:** 11\
**Page:** 2

<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:** [April 26, 2003, 9:02pm UTC](https://forum.kirupa.com/t/abuse/5625/21 "2003-04-26T21:02:12Z")

</div>

Ok, i have a quick question, i Recently got an email from a forum member, i was harrased, now, since he emailed me, how can i get his IP adress, so i can ban him from going to my site.

thanks for the awsome php script Raydred.

---

<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:** [April 26, 2003, 9:18pm UTC](https://forum.kirupa.com/t/abuse/5625/22 "2003-04-26T21:18:39Z")

</div>

Hi,

The way I got the IP address of the guy that was annoying me was to get him to fill in a php form that got his IP. I had a PHP message board and everytime someone signs it I get their IP. I setup an email form to send the msg board data to my inbox everytime someone posted a msg.

The bit of PHP in the email form was:

$REMOTE\_ADDR

If you can get the person to use a form with that code u can get their IP. Thing is if there on dial up the IP changes everytime they redial.  
I blocked my guy using htaccess - he was on DSL and his IP remained the same all the time, so he couldnt get back on my site… never heard from him again after that… hehe

Hope that helps you out,

Cheers 🙂

---

<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:** [April 26, 2003, 9:24pm UTC](https://forum.kirupa.com/t/abuse/5625/23 "2003-04-26T21:24:07Z")

</div>

the problem is that i donot have a php mail forum. im using a html one. Its on my site, [www.alexsdesigns.net](http://www.alexsdesigns.net). under the contact page. He emailed me through that form.

thanks for helping:)

---

<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:** [April 26, 2003, 9:27pm UTC](https://forum.kirupa.com/t/abuse/5625/24 "2003-04-26T21:27:04Z")

</div>

create an access log that logs the ip+time… see when the email was sent and ban the IP’s in the time range :beam:

If your servers supported php i could’ve given you the script i made for myself 🙂

---

<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:** [April 26, 2003, 9:29pm UTC](https://forum.kirupa.com/t/abuse/5625/25 "2003-04-26T21:29:31Z")

</div>

i could always use tripod to upload it to 😛

but i would need step by step instructions, because im stupid when it comes to PHP.lol  
thanks ahmed

---

<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:** [April 26, 2003, 9:30pm UTC](https://forum.kirupa.com/t/abuse/5625/26 "2003-04-26T21:30:26Z")

</div>

probably too late but…

here’s all that you need to ban ip’s via an htaccess file. Simply  
put this in and place the htaccess file at the root of your domain  
on the server:

```php
<Limit GET POST>
order allow,deny
allow from all
deny from 111.11.11.11
deny from 212.138.47.11
deny from 212.138.47.29
deny from 212.138.47.12
deny from 212.138.47.17
deny from 212.138.47.27
</Limit>

```

simply list the ip’s you wish to ban with “deny from” (no quotes).  
Hope this helps…

p.s. your server needs to support htaccess, of course 😉

---

<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:** [April 27, 2003, 5:32am UTC](https://forum.kirupa.com/t/abuse/5625/27 "2003-04-27T05:32:10Z")

</div>

If its an email you can set up your email client so that is shows you full headers…was the email from an email form on your site or from that persons email client?

---

<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:** [April 27, 2003, 4:59pm UTC](https://forum.kirupa.com/t/abuse/5625/28 "2003-04-27T16:59:29Z")

</div>

i have a form on my web site. i tried to contact doteasy, and im going to ask them if there was a way that i could get the IP

---

<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:** [April 27, 2003, 5:40pm UTC](https://forum.kirupa.com/t/abuse/5625/29 "2003-04-27T17:40:53Z")

</div>

hey alex, did you get my email:q:

---

<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:** [April 27, 2003, 5:45pm UTC](https://forum.kirupa.com/t/abuse/5625/30 "2003-04-27T17:45:03Z")

</div>

I hate abusers! BUT I LKOVE YOUR SITE! JUST WANTED YOUT O KNOW! IT’s great!

---

<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:** [April 27, 2003, 5:51pm UTC](https://forum.kirupa.com/t/abuse/5625/31 "2003-04-27T17:51:49Z")

</div>

IshiXP- thanks

ahmed - i think that i will let this go, but if he comes back with another negative statement. i will take action from there, Thanks for your help though 😛

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