WordPress.org

Ready to get started?Download WordPress

Forums

BAN IPs from Viewing (5 posts)

  1. OperaManiac
    Member
    Posted 10 years ago #

    how can i ban IPs from posting?
    u mean the post or comments!
    they cant post until u authorize them.
    for comments, u will have to look for blacklist thingy. just search on the forums!

  2. rpeeck
    Member
    Posted 10 years ago #

    no, i want a script so that when u go to the site, it checks your IP before loading the posts so that they can't even see the blog

  3. Stevarino
    Member
    Posted 10 years ago #

    I can see this back-firing so easy.
    Exactly how do you want this? Like have [black/white] listed [ips/ip ranges]? It would be pretty simple to create a function in my-hacks.php, say good-ip(), that returns true or false, and in your index.php simply put a if(good-ip()) { around your foreach loop.

  4. rpeeck
    Member
    Posted 10 years ago #

    ok thx for the tips... i used the .htaccess file to ban selected IPs and a PHP script to log IPs
    thx guys :)

  5. Anonymous
    Unregistered
    Posted 10 years ago #

    a PHP script to log IPs
    Can you tell me about the script, what it does and how you installed it rpeeck? Thanks.
    Kevin

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.