I want to set up a system to identify the companies that connect to my web site from their ip address. But once I have the ip addresses of visitors to my site, how do I determine if the visitor is a company or not? I retrieved the ip addresses of visitors in php Answer Try to use : gethostbyaddr
I found this code: This code is completely functional and working, the thing is that I want to add more than one range so I did this: But this one didn’t work , it goes throught the two parts of the conditional and it shows : Any way of fixxing it? Answer Use a flag, toggle it when you find
How Do I make it so my script echo’s both IPv4 And IPv6, but if 1 of them is not detected it will say ”Not Detected”. Answer There’s only one address, IPv4 or IPv6. You can detect using the filter extension
I have a website with which I want to record the ip’s of those who visit it. Now, I think I have some code that will do the job (I got this from here): What I want this to end up doing is saving the ip address and the date of everyone who visits my website to a log.txt file.
Want to ask, but maybe this question is a duplicate. I’m sorry that all the answers to the other questions didn’t work in my case. Question I have a server with apache as webserver running php+7.4 with default settings and certbot as SSL with public IP 192.168.1.11, I want to retrieve the IP of the client that opens my website,
I tried this function but this always return the host/website’s IP address instead of the user’s IP any idea why and how to fix it? the website is not hosted on localhost and I’m using lighttpd to host the website Answer lighttpd provides the remote address in the CGI environment variable REMOTE_ADDR. lighttpd does not set HTTP_CLIENT_IP unless the request
I’m building a website in PHP and need an API to be checked on a regular basis for EACH USER individually. In a nutshell it’s a SaaS to steer a user account on another website with additional/automated options. A web based bot if you want. So basically, I need to dynamically create a new cron job with its individual interval
The Spamhaus DBL is intended to be used to find domains that have poor reputations of sending spam. According to their documentation you should be able to test that it is working by looking up the host or dig response for ‘dbltest.com.dbl.spamhaus.org’ and it should respond with ‘dbltest.com.dbl.spamhaus.org IN A 127.0.1.2’. However this is what I get: The host results