BAN IPs from Viewing (5 posts)

  1. Sushubh
    Posted 12 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
    Posted 12 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
    Posted 12 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
    Posted 12 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
    Posted 12 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.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.