That is why I suggested $_SERVER, that will always be the current client ip address. If you are getting the same IP address for every user, then there is something wrong with $userrow, or how you query for it. please let me know if you need more detail. also I can view they has been tag as a spammer.ĭo you know how I can fix my code to make this work, I need the $addr = $userrow to be in the array or the $spam part to be in the array after the php check for spammer or not? I hope this makes sense. An easy way to get the (real) client IP in PHP. Use our powerful free API to both report abusive IPs and instantly check if an IP has. Report abusive IPs engaging in hacking attempts or other malicious behavior and help fellow sysadmins Check the report history of any IP address to see if anyone else has reported malicious activities. For 99.9 of users this solution will suit your needs perfectly. AbuseIP DBmaking the internet safer, one IP at a time. For your general purposes, you might consider using this in combination with the IP address returned directly from SERVER 'REMOTEADDR' and storing both. If a use does get past the regiater then I can find out if they are a spammer if so I can submit them to the database. The purpose of this solution is to attempt to determine the IP address of a client sitting behind a proxy. This will be used if a user gets past the register part and I do use the $addr = $_SERVER in that part. IIS Note: For HTTP Authentication to work with IIS, the PHP directive cgi.rfc2616headers. Click on ' ' and only check ' ', all other fields should be left unchecked. Thanks but I need the $addr = $userrow īecause I want to pull address from the sql database. In order to get HTTP Authentication to work using IIS server with the CGI version of PHP you must edit your IIS configuration ' '. You can get the remote address with $_SERVER so instead of: $query="UPDATE phpdir_users SET isbanned='Yes' WHERE id='".$_GET."'" $query="UPDATE phpdir_users SET isbanned='No' WHERE id='".$_GET."'" $smarty->assign('notice', 'Please Fill in the above to update the user\'s info.') $smarty->assign('notice', 'Error! Please try again.') $smarty->assign('notice', 'User Updated!Go back') Python Examples W3.CSS Examples Bootstrap Examples PHP Examples Java Examples XML Examples jQuery. $sql = "UPDATE phpdir_users SET username='$username1', email='$email', admin='$admin', ip='$ip', website='$website' WHERE id='$userid'" Returns the IP address from where the user is. Find the Files category and click on the File Manager icon. Next, log into your cPanel to access the. Open your file in the text editor of your choice and highlight and copy the information in the file. It also accepts a list of addresses and returns true only when all of them. Note: If you cannot find the IP address to a specific set of countries, sites like offer this data for a fee. $query = "Select * FROM phpdir_users WHERE ID = $id" isvalidip returns true if a given address is a valid IP address, false otherwise. $query = "DELETE FROM phpdir_users WHERE id='".$_GET."'" $usertotal = mysql_fetch_array($usertotalquery) $usertotalquery = mysql_query("SELECT COUNT(*) FROM phpdir_users") SmartyPaginate::setURL('index.php?id=users') User.php around line 30 is what I am adding // Start spam checker but I am getting same IP for every user in my code. In admin user.php and user.tpl I am trying to look at the IP address of the user and if in stopforumspam database user is a spammer and if not user is not a spammer. It's fast, free, easy, and one of the ways you can help make the Internet a better, safer place.Posted: Fri 4:51 pm Post subject: help with user.php and user.tpl arrayĬan I ask a question about smarty. To track harvesters and other malicious robots visiting your own website, sign up with Project Honey Pot today. If you believe an IP address is listed here in error, contact us and we will investigate. For example, it may have been hijacked from its true owner. Please note: being listed on these pages does not necessarily mean an IP address is owned by a spammer. Information is obtained from our worldwide network of honey pots. The list below is comprised of Malicious IPs (limited to the top 25 - login to see more) that are:Ĭlick any IP address for more details | Last updated: Decem09:00:00 PM
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |