MyBB Community Forums

Full Version: Check if IP is banned ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Cheers for the reply

I'm still getting: Using Proxy. Your Proxy IP is (my real ip). Your real IP address is: (my real ip)

Thanks again! Smile
Try this then:

<?php
$y = $_SERVER["REMOTE_ADDR"];
$x = $_SERVER["HTTP_X_FORWARDED_FOR"];

    if (!$x) 
        {
            echo "Not Using Proxy. Your IP address is: $y";
        }

if(empty($y))
        {
            echo "Using Proxy. Your Proxy IP is $x. Your real IP address is: $y";
        }
?>
Cheers for the reply

It's not displaying anything now though

Thanks again Smile
Jeez...3 pages and no one mentions the cache.

Wasteful to run a query if something is in cache.
(2012-08-08, 09:00 PM)labrocca Wrote: [ -> ]Jeez...3 pages and no one mentions the cache.

Wasteful to run a query if something is in cache.
Because the discussion turned into check if proxy or not.
Pages: 1 2 3