Results 1 to 2 of 2

Thread: php code to grab an IP

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,364

    php code to grab an IP

    there are a couple of users who keep posting stupid stuff in my site and i just have to keep deleting the posts. is there any way i can detect their ip so i can deny it from the control panel?

  2. #2
    Lively Member {yak}'s Avatar
    Join Date
    Aug 2005
    Posts
    119

    Re: php code to grab an IP

    You can get the IP with 'REMOTE_ADDR', take a look at the Predefined Variables
    But, that's an unreliable way to do it, as their IP isn't going to be the same each time. You should have something set up to manage your users, where it allows you not allow those certian users to post.

    Good luck;
    {yak}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width