0

i want to store details of visitor in site like ip and mac address

i got ip address of client but how can i get mca address of client ?

2 Answers 2

3

Simple answer: you can't. The MAC address is never transmitted. The best you can hope is to get the IP but remember that this IP could be the one of a proxy server situated anywhere in the world if the user configured some proxy to access the internet.

Sign up to request clarification or add additional context in comments.

13 Comments

so how can web check it that from where our site is hijack.. actually i am use this code to find who access my site from which location
@Bhargav Mistri, there is no reliable way. Remember that a user could even configure a proxy, so you might not even get the actual IP of the client but the one of the proxy.
The best you can do is get the IP address of the connection used to hijack, this could be used to geolocate where the connection came from, but this is not very accurate as ISPs tend to lease blocks of addresses.
@Bhargav Mistri, that question doesn't belong on StackOverflow. This is a programming related Q&A site.
Also, what Darin said. If I use an anonymous proxy to hijack your site, I might appear to be coming from Austria when I'm actually sitting in the UK.
|
0

If your website has been compromised you will have to contact the authorities in order to attempt to catch the person who did it. In most countries regular citizens do not have the power or authority to request the type of information you need from ISPs.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.