Port Scanning Question- probably not what you are thinking
Ok first off and I cant stress this enough.. THIS IS NOT INTENDED FOR MALICIOUS PURPOUSES!!!!
I am doing some research on common open ports as well as the statistics of those ports. especially with the microsoft OS. I am wondering if their is a way to port scan visitors of my website, not the index page but a seperate page that they would have to agree to let the scan go threw after explaining to them what it is for. Kindof like a privacy policy kindof thing. And then after the scan or during it have it log to a text file for later viewing. Having the IP address in the log is not important. just the ports arranged by per visitor basis
I have a apache server on redhat so I would like to use nmap to do this. I assume that maybe it can be accomplished threw a php script or some other means. I am pretty sure it can be done as my firewall if i remember correctly has told me that I was being portscanned and I ran a whois on it and it was the website I was currently visiting.
Please if anyone knows how to do this let me know. I have been searching google but find nothing about having a server auto scan its visitors.
Thanks in advance