Saturday, January 31, 2015

How to restrict login from another IP using PHP

To restrict login from another unknown IP 

you must need to use $_server['REMOTE_ADDR']

the syntax to restrict is 

if(isset($_POST['submit'])=="SUBMIT")
{
     if($_server['REMOTE_ADDR']=='127.0.0.1') // replace with your own IP
        {
             // your code
        }
}

1 comment:

  1. VideoTanks YouTube - Vimeo
    Vimeo provides high quality video related clips, videos and trailers. Vimeo's portfolio is diverse and convert youtube to mp3 diverse, so you can find the right clips to your

    ReplyDelete

How to get Logged In Username in Wordpress or Woocommerce

It is really easy to get the logged-in user’s information in Wordpress or Woocommerce. In this article we will show you how to get the relat...