¡@

Home 

php Programming Glossary: ips

How to Block 100,000+ Individual IP addresses

http://stackoverflow.com/questions/15579620/how-to-block-100-000-individual-ip-addresses

The issues Am trying to block a whole 100k plus individual IPs not subnets Am trying to avoid user getting to PHP before blocking.. issue in production I know the best solution is Block the IPs at the firewall level is there any way to pragmatically add.. hit is for using mod_rewrite like this with a lot of IPs but a quick benchmark test on apache 2.2 running on a 3Ghz i686..

What is the most accurate way to retrieve a user's correct IP address in PHP?

http://stackoverflow.com/questions/1634782/what-is-the-most-accurate-way-to-retrieve-a-users-correct-ip-address-in-php

'HTTP_CLIENT_IP' return _SERVER 'HTTP_CLIENT_IP' check for IPs passing through proxies if empty _SERVER 'HTTP_X_FORWARDED_FOR'.. snippet can be simplified from this check for IPs passing through proxies if empty _SERVER 'HTTP_X_FORWARDED_FOR'.. return _SERVER 'HTTP_X_FORWARDED_FOR' To this check for IPs passing through proxies if empty _SERVER 'HTTP_X_FORWARDED_FOR'..

How can I throttle user login attempts in PHP

http://stackoverflow.com/questions/2090910/how-can-i-throttle-user-login-attempts-in-php

this method. Why Because the attack can span multiple IPs and user accounts for the sake of bypassing your throttling..

Using PHP/Apache to restrict access to static files (html, css, img, etc)

http://stackoverflow.com/questions/2187200/using-php-apache-to-restrict-access-to-static-files-html-css-img-etc

kind of cleanup routine to purge out old or no longer used IPs. I worry that my first solution could get pretty expensive on..

How do I find a user's IP address with PHP?

http://stackoverflow.com/questions/55768/how-do-i-find-a-users-ip-address-with-php

you really want though depending what your doing with the IPs. Someone's private RFC1918 address may not do you any good if..

eval base64_decode php virus

http://stackoverflow.com/questions/5922762/eval-base64-decode-php-virus

u ip2long _SERVER 'REMOTE_ADDR' foreach stop_ips_masks as IPs first_d sprintf u ip2long IPs 0 second_d sprintf u ip2long IPs.. foreach stop_ips_masks as IPs first_d sprintf u ip2long IPs 0 second_d sprintf u ip2long IPs 1 if my_ip2long first_d my_ip2long.. first_d sprintf u ip2long IPs 0 second_d sprintf u ip2long IPs 1 if my_ip2long first_d my_ip2long second_d bot TRUE break foreach..

matching an IP to a CIDR mask in php5?

http://stackoverflow.com/questions/594112/matching-an-ip-to-a-cidr-mask-in-php5

dotted quad IP to a CIDR notation mask. I have a bunch of IPs I need to see if they match a range of IPs. example ips array.. have a bunch of IPs I need to see if they match a range of IPs. example ips array '10.2.1.100' '10.2.1.101' '10.5.1.100' '1.2.3.4'.. question If only using IPv4 use ip2long to convert the IPs and the subnet range into long integers convert the xx into..

Unique IPs in a voting system

http://stackoverflow.com/questions/7775968/unique-ips-in-a-voting-system

IPs in a voting system I'm creating a voting system for my PHP.. get extra votes App doesn't shut 1000's out with shared IPs The Good Thought But False Pretense IP addresses Office buildings..

I want to find current location of user in php

http://stackoverflow.com/questions/10562265/i-want-to-find-current-location-of-user-in-php

of user in php i am using http api.easyjquery.com ips ip 115.119.253.90 full true this api for getting current location..

Can I parameterize the table name in a prepared statement?

http://stackoverflow.com/questions/11312737/can-i-parameterize-the-table-name-in-a-prepared-statement

function insertRow db mysqli new_table Partner Merchant ips score category overall protocol statement mysqli prepare INSERT.. mysqli_stmt_bind_param statment 'sssisss' Partner Merchant ips score category overall protocol statement execute Is it possible.. function insertRow db mysqli new_table Partner Merchant ips score category overall protocol statement mysqli prepare INSERT..

How to detect fake users ( crawlers ) and cURL

http://stackoverflow.com/questions/12257584/how-to-detect-fake-users-crawlers-and-curl

is filled. Idea 1 you create 2 tables 1 to save banned ips and 1 to save ip and sessions create table if not exists sessions_per_ip.. key ip session_id create table if not exists banned_ips ip int unsigned creation timestamp default current_timestamp.. now check_duration dbh exec query query delete from banned_ips where timestampdiff second creation now lock_duration dbh exec..

PHP Curl, retrieving Server IP Address

http://stackoverflow.com/questions/1369760/php-curl-retrieving-server-ip-address

true result curl_exec ch curl_close ch ips get_curl_remote_ips wrapper fclose wrapper echo end ips 208.69.36.231.. true result curl_exec ch curl_close ch ips get_curl_remote_ips wrapper fclose wrapper echo end ips 208.69.36.231 function get_curl_remote_ips.. ch ips get_curl_remote_ips wrapper fclose wrapper echo end ips 208.69.36.231 function get_curl_remote_ips fp rewind fp str..

What is the most accurate way to retrieve a user's correct IP address in PHP?

http://stackoverflow.com/questions/1634782/what-is-the-most-accurate-way-to-retrieve-a-users-correct-ip-address-in-php

if empty _SERVER 'HTTP_X_FORWARDED_FOR' check if multiple ips exist in var iplist explode ' ' _SERVER 'HTTP_X_FORWARDED_FOR'.. if empty _SERVER 'HTTP_X_FORWARDED_FOR' check if multiple ips exist in var if strpos _SERVER 'HTTP_X_FORWARDED_FOR' ' ' false..

should $ip=$_SERVER['REMOTE_ADDR']; return ::1 on a mamp localhost?

http://stackoverflow.com/questions/3699454/should-ip-serverremote-addr-return-1-on-a-mamp-localhost

httpd.conf Find where your apache is 'listen' ing to the ips ports etc... Typically this will be a line looking like this..

matching an IP to a CIDR mask in php5?

http://stackoverflow.com/questions/594112/matching-an-ip-to-a-cidr-mask-in-php5

of IPs I need to see if they match a range of IPs. example ips array '10.2.1.100' '10.2.1.101' '10.5.1.100' '1.2.3.4' foreach.. '10.2.1.100' '10.2.1.101' '10.5.1.100' '1.2.3.4' foreach ips as IP if cidr_match IP '10.2.0.0 16' true print you're in the..

How to do a geoip lookup in php?

http://stackoverflow.com/questions/6499145/how-to-do-a-geoip-lookup-in-php

on some arbitrary db php result mysql_query SELECT FROM ips WHERE ip _SERVER 'REMOTE_ADDR' LIMIT 1 or die mysql_error..

Status checker for hundreds IP addresses

http://stackoverflow.com/questions/8956839/status-checker-for-hundreds-ip-addresses

shell_exec 'nmap n PN sP PS80 oG send ip ' . implode ips result array foreach preg_split r n output as line if substr..