ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!

Jump to content



Photo

How To Show Display User IP Address By Wordpress Website. PHP CODE


  • Please log in to reply
How To Show Display User IP Address By Wordpress Website. PHP CODE

#1

dewanikbijoy
dewanikbijoy
    Offline
    0
    Rep
    0
    Likes

    OnexusDev | The Power of Coading

  • PipPip
Posts: 13
Threads: 3
Joined: Dec 26, 2019
Credits: 0

Four years registered
#1

Hello Guys

 

In This Code Pest in Your All code Under in function.php file

 

// Display User IP in WordPress


function get_the_user_ip() {
if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) {
//check ip from share internet
$ip = $_SERVER['HTTP_CLIENT_IP'];
} elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {
//to check ip is pass from proxy
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ip = $_SERVER['REMOTE_ADDR'];
}
return apply_filters( 'wpb_get_ip', $ip );
}

add_shortcode('show_ip', 'get_the_user_ip');

 

 

 

Now Pest This Code in The Where You Show The IP Address

 

 

[show_ip]

 

 

 

Now Finish


  • 0

DewAnikBijoy


#2

unazed
unazed
    Offline
    31
    Rep
    126
    Likes

    https://rari.su

Posts: 285
Threads: 29
Joined: Sep 17, 2018
Credits: 0

Five years registered
#2

Wrong section chief. 


  • 1

Contact for professional programming services.

 

6+ years desktop application development experience.
Python and C, reverse engineering experience on x86{-64} native binaries.
Versed in penetration testing, CompTIA Network+ certified.

Discord: xchg#5401

 

Your one-stop-shop for homework help: PaperPeers.com


#3

dewanikbijoy
dewanikbijoy
    Offline
    0
    Rep
    0
    Likes

    OnexusDev | The Power of Coading

  • PipPip
Posts: 13
Threads: 3
Joined: Dec 26, 2019
Credits: 0

Four years registered
#3

Wrong section chief. 

thanks man


  • 0

DewAnikBijoy


#4

TwitchFractor
TwitchFractor
    Offline
    7
    Rep
    12
    Likes

    Member

Posts: 60
Threads: 7
Joined: Jul 03, 2020
Credits: 0

Three years registered
#4

i rly like it man :)


  • 1


 Users browsing this thread: