Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3331740
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:36:54+00:00 2026-05-17T23:36:54+00:00

I would like to understand the programmatic way of finding out(logging) IP address &

  • 0

I would like to understand the programmatic way of finding out(logging) IP address & physical MAC address of computers/devices from which web browsers would connect to a webserver (hosting some site) to access the site.

e.g.

Consider a web site which has many users posting threads in some forum on that website, throughout the day/for many days.

How can the server hosting the sebsite find out the IP addresses passed which are accessing the server for – Reading the posts, Writing/Editing the posts.

If it is found that a particular webbrowser/client from a certain IP address is doing a malicious operation on the server(violating the robots rules, or anything else which the webserver does not like), can the server in some way programatically block that IP adress from accessing the server/website content?

Question 1] Is it possible to get it done something like above? Does it have any particular name/terminology?

Question 2] If yes, What kind of code would help do that? I meam what all are the aspects the code doing this functionality need to have(TCP-IP sockets, robots analysers, etc.. [I might be totally off here, just putting what i could think of, but would like to hear more])

Question 3] Would it be possible to do it in C, PERL or it would need some Javascript, PHP,.. kind of code to get it done.

P.S. Sorry for multiple questions in one post, but I am asking this solely from programming perspective to understand something I do not know, and I do not fully realize whether web-servers already do this, or if it has any privacy-breach angle to this. So would like to avoid this subjective/argumentative aspect and know only technical solutions.

Thank You.

-AD

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T23:36:55+00:00Added an answer on May 17, 2026 at 11:36 pm

    First of all, forget MAC address. There is no way. MAC address is only visible while in LAN, so…

    1. Yes, it is possible. There are several languages and platforms for web applications, or you can write your own webserver on your own. It could be too complicated to explain here “how to do it” without a reference to the platform (PHP? ASP.NET?)
    2. Ok let’s take an example. If you are using PHP, you can get your client’s IP with $SERVER["REMOTE_ADDR"]. Once you get this value, do whatever computation you want. By “whatever” you may mean “robot analysis”, for example try to see in the database if that IP posted a topic less than 30 seconds ago. If so, refuse posting. You can always have a list of banned IPs and so on..
    3. If you write your webserver on your own (crazy!!!!) C is viable. But I suggest you PHP or better ASP.NET.

    An important aspects: web server don’t perform such tasks. This is done by web applications, a software layer that stands above the application server which is just over the web server.

    You might need to study some theory, pal 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to understand the values I get from read command in console.
I would like to understand what's happening in the example below (where a protected
I would like to understand why you might want to use the global:: prefix.
I would like to understand how the MVVM light toolkit raises the PropertyChanged event.
I would like to understand how the GNU GCC compiler handles optimizations. I know
I would like to understand the ServiceBehavior.ConcurrencyMode property. Consider the following code on service
I would like to know a way to actually make the status bar that
There are few scenarios which i can expect during my execution, I would like
Would like to get step-by-step explanation of the following function in Haskell fibs =
I would like to be able to connect an Oracle database with a SQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.