Block my website from iFrame traffic
In some cases it’s usefull to protect own website from iFrame traffic. Here are 2 solutions. Protect with PHP Protect with Javascript
In some cases it’s usefull to protect own website from iFrame traffic. Here are 2 solutions. Protect with PHP Protect with Javascript
To get user IP address you need only this variable: In this example you echo user ip address. You can also use a variable like $ip = $_SERVER[‚REMOTE_ADDR‘];
A simple PHP function is included in all webhosting packages. Here you see all variables: 2 letter country code: geoip_country_code_by_name(IP) | Output: US Full country name: geoip_country_name_by_name(IP) | Output: United States 3 letter country code: geoip_country_code3_by_name(IP) | Output: USA 2 letter continent code: geoip_continent_code_by_name(IP) | […]