1
karedokx
Getting the user IP Address
  • 2005/7/7 13:52

  • karedokx

  • Quite a regular

  • Posts: 319

  • Since: 2004/7/1 6


a user of my website abusing my website (by keep submitting blank article/news). how can i get his ip address, so i can block him accessing my website?

many thanks!

2
Alan-A
Re: Getting the user IP Address
  • 2005/7/7 14:47

  • Alan-A

  • Not too shy to talk

  • Posts: 191

  • Since: 2004/2/17


Hi,

a pain, yes, but don't the great majority of users surf with dynamically allocated ip adresses?

Regards,

Alan
...

3
McNaz
Re: Getting the user IP Address
  • 2005/7/7 15:05

  • McNaz

  • Just can't stay away

  • Posts: 574

  • Since: 2003/4/21


In php, the following function call will get your visitor's IP address.

$ipAddress getenv("REMOTE_ADDR");

4
Peekay
Re: Getting the user IP Address
  • 2005/7/7 15:24

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


There's an issue detecting a user's real IP from their NTL cable proxy server address. Some more info in this thread.
A thread is for life. Not just for Christmas.

5
karedokx
Re: Getting the user IP Address
  • 2005/7/28 14:06

  • karedokx

  • Quite a regular

  • Posts: 319

  • Since: 2004/7/1 6


resubmitted. really appreciate a concrete & practical suggestion for this. i'm not a coder.

blocking a user in accessing my website
one of the member of my XOOPS website keeps sending blank message, news, etc (abusing my website with blank messages).

it's really annoyed me. how can i trap his/her ip address? will it help to block him/her in accessing my website or there is a better way to achieve that?

many thanks for some inputs on this!

6
dickinsd
Re: Getting the user IP Address
  • 2005/7/28 23:38

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


As you have been told by the other posters, it is very dificult to identify the IP address of many users.

Often a users ISP can mask the address so that you just get a public IP the blocking of which might stop many users of getting to yur site, or the ISP will probably (as is the case for most ISPs) assign the users IP address dynaically, therefore stopping the address this time will do nothing when he gets a new IP assigned from his ISP.

So how to get past the problem?

First of all you can make it so that only members can post on your site, this way you will get the member name of the article poster, then you can boot them from your site, they might sign up again, just boot them again, they will get bored and move on eventually.

Remember to make new members activate their accounts, this way the user is going to have to get another email address everytime he wants to sign up and post junk, again this will help to make him bored so that he goes away.

And I guess another option might be to edit the templates of the modules that this user is abusing so that the IP address is captured from each user that submits to the site, you can ban the IPs this way, but as stated before, most IPs are dynamic, which means you might end up with a really big list of IPs to block. (possibly even set it so that the IP address is only displayed to admin level users)

I suppose once you have the IP, then if you wanted to take the risk you could perhaps use a .htaccess file to ban all address's from that ISP, but that might well cause you more problems than it will cause him.

Personally I would go for restricting access to modules to members and making new members activate their accounts, that way they have to provide a real email address, or at least one they can check (Its not fool proof, there are sites that will help you get past email activation, but it might help make the process of posting empty posts a little less fun).

Dave

7
karedokx
Re: Getting the user IP Address
  • 2005/7/30 4:44

  • karedokx

  • Quite a regular

  • Posts: 319

  • Since: 2004/7/1 6


thanks dickinsd for your feedback. i will try to implement your recommendation.

Login

Who's Online

448 user(s) are online (368 user(s) are browsing Support Forums)


Members: 0


Guests: 448


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits