Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,151,146 members, 7,811,229 topics. Date: Sunday, 28 April 2024 at 07:07 AM

How Websites Work - Webmasters (2) - Nairaland

Nairaland Forum / Science/Technology / Webmasters / How Websites Work (13089 Views)

How Websites Get Hackked: A 2016 2nd And 3rd Quarter Report / How Websites Get Hacked / Satisfy Your Curiosity, Learn How Websites Work For Free (2) (3) (4)

(1) (2) (3) (Reply) (Go Down)

Re: How Websites Work by oc2fish: 4:53pm On Mar 23, 2016
Can some please give the email that can be used to report erring bank to CBN?
Re: How Websites Work by polarman(m): 4:55pm On Mar 23, 2016
Nice post @op. You simplified the process very well. You must be a primary school teacher grin grin grin

2 Likes

Re: How Websites Work by obinna2nv(m): 4:59pm On Mar 23, 2016
Good read. You did well with the simplification.
Re: How Websites Work by Nobody: 5:00pm On Mar 23, 2016
Aviero:
So when Nairaland was hacked, and we couldn't access it, it meant Akpan didn't go to deliver any message. Or when it delivered the message, the server couldn't find Nairaland to send to our IP address?

I am a total novice. I ft de talk rubbish sef..

cc: SonOfLucifer
No, someone sent a message disguised as Akpan. When fake Akpan gets to the server, it fools the server and the server lets him into the house. Now fake Akpan has access to the house, the messenger became an intruder.

2 Likes

Re: How Websites Work by Nobody: 5:00pm On Mar 23, 2016
polarman:
Nice post @op. You simplified the process very well. You must be a primary school teacher grin grin grin
grin
Re: How Websites Work by Nobody: 5:03pm On Mar 23, 2016
before eh, I tink say if u get website for pals to access ur webpage ur computer must be on and connected to the internet 24/7.
Re: How Websites Work by preciousman(m): 5:04pm On Mar 23, 2016
Nice write up
Re: How Websites Work by ojezee(m): 5:04pm On Mar 23, 2016
leave akpan ,so what happens with the boy and girl at the restaurant?
Re: How Websites Work by Aviero: 5:04pm On Mar 23, 2016
sonOfLucifer:

No, someone sent a message disguised as Akpan. When fake Akpan gets to the server, it fools the server and the server lets him into the house. Now fake Akpan has access to the house, the messenger became an intruder.
Oh, I see.

I'm here almost thinking Akpan is an internet language. LOL .. So much for being a good simplifier.

Nice one! cool

1 Like

Re: How Websites Work by castel428: 5:04pm On Mar 23, 2016
Bros how does Web owners gain money just from people visiting their site? I wanna know how it works
Re: How Websites Work by Aviero: 5:06pm On Mar 23, 2016
castel428:
Bros how does Web owners gain money just from people visiting their site? I wanna know how it works
Re: How Websites Work by UjSizzle(f): 5:19pm On Mar 23, 2016
Don't think I've enjoyed reading about websites this much smiley

Thanks for the Akpan analogy, OP. It made this a lot easier to follow.

1 Like

Re: How Websites Work by Nobody: 5:20pm On Mar 23, 2016
UjSizzle:
Don't think I've enjoyed reading about websites this much smiley

Thanks for the Akpan analogy, OP. It made this a lot easier to follow.
Ujjjjjjjjjj grin grin grin kiss kiss kiss
Re: How Websites Work by Nobody: 5:26pm On Mar 23, 2016
castel428:
Bros how does Web owners gain money just from people visiting their site? I wanna know how it works
The world has changed and online is the new marketplace. When you start a site, it's similar to opening a shop at a new address. If you want sales or customers, you need to make ads, make people aware of what your shop offers.

Digital/online marketing works in a similar way. But first, you need to get people to come to your site(traffic). Now your site could be providing a service(facebook), selling a product(jumia) or just educational(nairaland).
An easy way to get set up is to register your site on Google Ads. Google would push ads to your site and pay you when people click on those ads AND complete purchases. Nairaland uses an in-house ad management service. People pay Seun to advertise their products on his site.

Making money online is a really vast topic.

1 Like 1 Share

Re: How Websites Work by Chrisx1x(m): 5:27pm On Mar 23, 2016
sonOfLucifer:

Ujjjjjjjjjj grin grin grin kiss kiss kiss
bros abeg this ur monick get as e b[ end time monick] it is horrible
Re: How Websites Work by html14java(f): 5:53pm On Mar 23, 2016
sonOfLucifer:
Alright, so this is a little guide on websites and how they work.

The Web has given us a lot of things to be grateful for; Patience Jonathan's epic 'CHAI' video on YouTube is something I will always be grateful for.
You can be in a remote village in Jalingo, and buy expired drugs from a businessman in China. NEPA might misbehave while you're in the middle of Season 3 of Game of Thrones. One MTN data pack later, you'd have watched it on YouTube or one of the many illegally legal streaming sites. tongue

Simply amazing, amazing technology.

I want you to relax and forget about what you know or think you know. I assume you know all I have to talk about; I just want to make sure that assumption is right.

So on to the topic, what's the web? How does it work? There is nothing too technical in this. Computers, and generally man's inventions, only mirror the world in which we live in.

It all begins with a device called a Computer. I assume you've used a calculator at some point in your life. Let's say you have to perform an addition on two numbers.
123 + 421

You press the buttons on the calculator to input the figures, and then press the answer button to get the result.
When you press the buttons on the calculator, the calculator has to perform the following processes to return a result to you.
a. accept your input.
b. process it.
c. return a result.

These are the functions of a computer. It's an electronic device that accepts input(data), processes it, and returns a result. Easy.

Computers you are probably more familiar with range from desktops, laptops, mobiles etc..

[img]http://hardwaretexpert.files./2011/01/connecttwocomputerswithethernet.jpg[/img]

Below are two computers. Let's call the one on the left a client and the other a server. The Client represents your laptop, phone or any device you use to view or browse a website. A program on your device called a browser is used to access the website. Your browser might Google Chrome, Mozilla Firefox, Opera Mini, or the dead,buried but not forgotten Internet Explorer.

Let me break this down a bit. Better hunger don wire you and you dey find food wey you go chop. You quickly rush into a restaurant, and two eba later, you are satisfied and your total financial worth has decreased by N250.

Like we did for the calculator, let's go through the process from hunger to satisfaction.
You walk into the restaurant and approach the small girl lazily swinging her legs and chewing gum behind the counter. You place your order and take a seat. This is you, the client.

You are a client because you have a request. In the same way, your browser makes a request for a webpage.
You do not need to go into the kitchen and prepare the food yourself. You do not even need to know if they have a kitchen. All you do is place an order (and hope your belle no go run cheesy).

So your device is a client that makes a request using a web browser.

Unlike the girl at the counter who is physically present in front of you, the browser needs to send a request to another computer several miles away. That request has to make its way to the right computer. If you want Mr Biggs to send you meatpie, the request should not end up at Jevinik.
This is made possible through the Internet.

What is the Internet?
Now imagine you have to travel from Port-Harcourt to Owerri. There are many roads by which you can embark on this journey. Some of the roads will have more traffic than others. But every car, hopefully, will leaves it origin and arrive at its destination safely.

In digital terms, we call the road network the internet. It enables you send messages between tow points, from source(your device) to destination ( server).You can connect two computers together in such a way that they will be able to communicate with each other.

NOTE: TO avoid being too technical, the rest of this story has been oversimplified. My intention is to ensure you understand the concept of what goes on behind the scenes, not understand every technicality.

The Internet is the connection of all connections. It's a digital highway enabling billions of devices to communicate with each other. On this digital highway, every device has something called an IP address. This IP address is similar to your home address. It identifies the location of each device on the highway, just like your address describes and identifies where you reside.

When you enter the address(facebook.com, bbc.co.uk, lindaikejiblog.com), you send out one small Akpan on the highway. That's your message. Akpan takes address(facebook.com, bbc.co.uk etc) and gets on the road. This is the address of the website you want to access.

Akpan gets to a junction. In IT parlance, we call this junction a router. They are a network device. You've probably seen one before. It's usually what you connect to when you login to a WIFI network. It's like TIMARIV /LASTMA and Immigration in one. They control traffic on the digital highway, ensuring that millions/billions of Akpans head in the right direction. Routers link different computer networks. If the website you want to access is hosted in another country, they'll be there to guide little Akpan along the way.

So from router, to router, to router Akpan goes, until he gets to the router closest to the computer where facebook/bbc/pornhub lives. Now, let's come back to reality.




The second computer on the right is called a Server. Don't Let the name scare you, it's nothing serious.

A server's purpose is to accept requests and respond to them. Like that girl at the counter in our imaginary restaurant.

It's a computer just like yours, but it has more power, more strength, it's a Goliath and you are its David. Its strength comes from the fact that it would probably have more hard disk, ram and processing power than your phone will ever need. Think about it, who has more stock of food right now? You or Mr Biggs?

The server is the computer on which the website is hosted. This is where your site lives.

Just briefly, let's describe what a website is. When you work on Microsoft Documents, you save them as document files. They'll probably have a .doc or .docx extension at the end of the filename. Different programs have different file types. You need video players (Windows Media, VLC) to play videos. You need music players to play music. In the same way, documents opened by browsers are called HTML files.

A web developer writes the code for a website, stores them in files called HTML files and copies them onto the server. REMEMBER, the server is just a computer like yours. So when Akpan gets to the door to deliver the message, the server opens the door, gets the request from Akpan, looks at the address, and goes to find the webpages. Usually, when you access a website, the first page you get is the homepage. This is the page the server will return to your phone.
And Akpan, returns home with a smile on his face, and delivers the webpage to your device. Facebook, Gmail, pornhub whatever, all inside his tiny little bag.. cry





Extra info for web developers

Following the analogy on Akpan, it's crucial to note the following.
The client doesn't need to know what the server does or how it gets the webpage. All Akpan requires is a html file is returned to it.

Now, remember as I said earlier, the server is like your computer. It runs an operating system just like your laptop runs Windows and phone runs Android or IOS (Apple).

From a web developer's perspective, to design a website you should be versatile in the following languages.
HTML : Determines the content of your web pages(.html files you save)
CSS: Determines how the content will look, its presentation ( .CSS files)
Javascript: Adds interactivity to your website. ( .JS files)
PHP/Mysql: Server side programs (explained further on)

Every web browser comes with HTML, CSS, and Javascript installed. So they're able to interprete the files without any help from the server.
Server side programs are installed on the server( remember just a computer). Apache is a WEB server. It's simply an application that runs on a server and handles those requests you make. PHP is a web language that runs on servers. It makes your pages dynamic (i.e the page you get is based on your input/feedback, think newsfeed on facebook).
shot
Re: How Websites Work by Rick9(m): 5:59pm On Mar 23, 2016
castel428:
Bros how does Web owners gain money just from people visiting their site? I wanna know how it works
in the internet there's what we call traffic, can't say much tho, but traffic is the total number of visitors your website receive in a single day, now to make money on your website is like this, you make money through Ads (Adverts) , Like nairaland for instance you would open some page and see some Banner displaying some Ads, now because nairaland has a lot of traffic I.e visitors , prospective customers can advertise their products and services on nairaland, now when they do, they pay for the advert rates set by seun. So if u have alot of clients whom are willing to advertise on your website, the money start flowing in, Sites like Google and Facebook can boast of 1 Billion Unique Visitors a day, now imagine that. That's the little I know oh am about to dive into the world of computers.
Re: How Websites Work by Nobody: 6:08pm On Mar 23, 2016
SonofLucifer - Brilliant thread! In the same way you explained & illustrated your topic, could you also explain how Lucifer slaughtered Jesus on the Mount Calvary & Y there won't be a 2nd coming of their Lord Jesus Christi grin

Let us scare the Christians outta Nairaland grin cheesy grin

2 Likes

Re: How Websites Work by Nobody: 6:20pm On Mar 23, 2016
Zoharariel:
SonofLucifer - Brilliant thread! In the same way you explained & illustrated your topic, could you also explain how Lucifer slaughtered Jesus on the Mount Calvary & Y there won't be a 2nd coming of their Lord Jesus Christi grin

Let us scare the Christians outta Nairaland grin cheesy grin
https://www.nairaland.com/2828556/luciferean-series-understanding-christianity

https://www.nairaland.com/2989687/how-jesus-died-sins-road

https://www.nairaland.com/2996235/what-bible-lie/4#2996235.151
tongue grin

1 Like

Re: How Websites Work by Amsonme(m): 6:40pm On Mar 23, 2016
gud to knw
Re: How Websites Work by Irore: 6:49pm On Mar 23, 2016
sonOfLucifer:
Alright, so this is a little guide on websites and how they work.

The Web has given us a lot of things to be grateful for; Patience Jonathan's epic 'CHAI' video on YouTube is something I will always be grateful for.
You can be in a remote village in Jalingo, and buy expired drugs from a businessman in China. NEPA might misbehave while you're in the middle of Season 3 of Game of Thrones. One MTN data pack later, you'd have watched it on YouTube or one of the many illegally legal streaming sites. tongue

Simply amazing, amazing technology.

I want you to relax and forget about what you know or think you know. I assume you know all I have to talk about; I just want to make sure that assumption is right.

So on to the topic, what's the web? How does it work? There is nothing too technical in this. Computers, and generally man's inventions, only mirror the world in which we live in.

It all begins with a device called a Computer. I assume you've used a calculator at some point in your life. Let's say you have to perform an addition on two numbers.
123 + 421

You press the buttons on the calculator to input the figures, and then press the answer button to get the result.
When you press the buttons on the calculator, the calculator has to perform the following processes to return a result to you.
a. accept your input.
b. process it.
c. return a result.

These are the functions of a computer. It's an electronic device that accepts input(data), processes it, and returns a result. Easy.

Computers you are probably more familiar with range from desktops, laptops, mobiles etc..

[img]http://hardwaretexpert.files./2011/01/connecttwocomputerswithethernet.jpg[/img]

Below are two computers. Let's call the one on the left a client and the other a server. The Client represents your laptop, phone or any device you use to view or browse a website. A program on your device called a browser is used to access the website. Your browser might Google Chrome, Mozilla Firefox, Opera Mini, or the dead,buried but not forgotten Internet Explorer.

Let me break this down a bit. Better hunger don wire you and you dey find food wey you go chop. You quickly rush into a restaurant, and two eba later, you are satisfied and your total financial worth has decreased by N250.

Like we did for the calculator, let's go through the process from hunger to satisfaction.
You walk into the restaurant and approach the small girl lazily swinging her legs and chewing gum behind the counter. You place your order and take a seat. This is you, the client.

You are a client because you have a request. In the same way, your browser makes a request for a webpage.
You do not need to go into the kitchen and prepare the food yourself. You do not even need to know if they have a kitchen. All you do is place an order (and hope your belle no go run cheesy).

So your device is a client that makes a request using a web browser.

Unlike the girl at the counter who is physically present in front of you, the browser needs to send a request to another computer several miles away. That request has to make its way to the right computer. If you want Mr Biggs to send you meatpie, the request should not end up at Jevinik.
This is made possible through the Internet.

What is the Internet?
Now imagine you have to travel from Port-Harcourt to Owerri. There are many roads by which you can embark on this journey. Some of the roads will have more traffic than others. But every car, hopefully, will leaves it origin and arrive at its destination safely.

In digital terms, we call the road network the internet. It enables you send messages between tow points, from source(your device) to destination ( server).You can connect two computers together in such a way that they will be able to communicate with each other.

NOTE: TO avoid being too technical, the rest of this story has been oversimplified. My intention is to ensure you understand the concept of what goes on behind the scenes, not understand every technicality.

The Internet is the connection of all connections. It's a digital highway enabling billions of devices to communicate with each other. On this digital highway, every device has something called an IP address. This IP address is similar to your home address. It identifies the location of each device on the highway, just like your address describes and identifies where you reside.

When you enter the address(facebook.com, bbc.co.uk, lindaikejiblog.com), you send out one small Akpan on the highway. That's your message. Akpan takes address(facebook.com, bbc.co.uk etc) and gets on the road. This is the address of the website you want to access.

Akpan gets to a junction. In IT parlance, we call this junction a router. They are a network device. You've probably seen one before. It's usually what you connect to when you login to a WIFI network. It's like TIMARIV /LASTMA and Immigration in one. They control traffic on the digital highway, ensuring that millions/billions of Akpans head in the right direction. Routers link different computer networks. If the website you want to access is hosted in another country, they'll be there to guide little Akpan along the way.

So from router, to router, to router Akpan goes, until he gets to the router closest to the computer where facebook/bbc/pornhub lives. Now, let's come back to reality.




The second computer on the right is called a Server. Don't Let the name scare you, it's nothing serious.

A server's purpose is to accept requests and respond to them. Like that girl at the counter in our imaginary restaurant.

It's a computer just like yours, but it has more power, more strength, it's a Goliath and you are its David. Its strength comes from the fact that it would probably have more hard disk, ram and processing power than your phone will ever need. Think about it, who has more stock of food right now? You or Mr Biggs?

The server is the computer on which the website is hosted. This is where your site lives.

Just briefly, let's describe what a website is. When you work on Microsoft Documents, you save them as document files. They'll probably have a .doc or .docx extension at the end of the filename. Different programs have different file types. You need video players (Windows Media, VLC) to play videos. You need music players to play music. In the same way, documents opened by browsers are called HTML files.

A web developer writes the code for a website, stores them in files called HTML files and copies them onto the server. REMEMBER, the server is just a computer like yours. So when Akpan gets to the door to deliver the message, the server opens the door, gets the request from Akpan, looks at the address, and goes to find the webpages. Usually, when you access a website, the first page you get is the homepage. This is the page the server will return to your phone.
And Akpan, returns home with a smile on his face, and delivers the webpage to your device. Facebook, Gmail, pornhub whatever, all inside his tiny little bag.. cry





Extra info for web developers

Following the analogy on Akpan, it's crucial to note the following.
The client doesn't need to know what the server does or how it gets the webpage. All Akpan requires is a html file is returned to it.

Now, remember as I said earlier, the server is like your computer. It runs an operating system just like your laptop runs Windows and phone runs Android or IOS (Apple).

From a web developer's perspective, to design a website you should be versatile in the following languages.
HTML : Determines the content of your web pages(.html files you save)
CSS: Determines how the content will look, its presentation ( .CSS files)
Javascript: Adds interactivity to your website. ( .JS files)
PHP/Mysql: Server side programs (explained further on)

Every web browser comes with HTML, CSS, and Javascript installed. So they're able to interprete the files without any help from the server.
Server side programs are installed on the server( remember just a computer). Apache is a WEB server. It's simply an application that runs on a server and handles those requests you make. PHP is a web language that runs on servers. It makes your pages dynamic (i.e the page you get is based on your input/feedback, think newsfeed on facebook).

Free tutorial. If na JAMB now , na for sale. Tnx beloved.

1 Like

Re: How Websites Work by Irore: 6:51pm On Mar 23, 2016
Rick9:
in the internet there's what we call traffic, can't say much tho, but traffic is the total number of visitors your website receive in a single day, now to make money on your website is like this, you make money through Ads (Adverts) , Like nairaland for instance you would open some page and see some Banner displaying some Ads, now because nairaland has a lot of traffic I.e visitors , prospective customers can advertise their products and services on nairaland, now when they do, they pay for the advert rates set by seun. So if u have alot of clients whom are willing to advertise on your website, the money start flowing in, Sites like Google and Facebook can boast of 1 Billion Unique Visitors a day, now imagine that. That's the little I know oh am about to dive into the world of computers.

You too like money. Wetin?
Re: How Websites Work by Rick9(m): 7:07pm On Mar 23, 2016
Irore:


You too like money. Wetin?
Ahahhhahahahahahahaha nobody hates money not even Dangote
Re: How Websites Work by akigbemaru: 7:27pm On Mar 23, 2016
How it works
Re: How Websites Work by Douglasin: 7:34pm On Mar 23, 2016
castel428:
Bros how does Web owners gain money just from people visiting their site? I wanna know how it works
Web owners make money by registering in Google AdSense and Google put ads in the site.
Let's assume I own a blog that attracts about 1000 viewers and I want to monetize it, all I have to do is register for Google AdSense. For example a banner in my site is an ad for Volkswagen. If someone clicks on the ad through my blog, then Volkswagen pays (let's assume $1).
Since I used Google's services to place the ad in my blog, Google take 32% of the $1 and leave me with 68%(i.e 68cents).
If we assume 20% of my viewers click on the ad everyday, you get 200 multiplied by $0.68 which equals $136 daily.
It doesn't matter if the person makes a purchase with Volkswagen or not, but as long as the ad was clicked, your $0.68 is sure.
That's the idea Facebook uses, but they don't use Google AdSense, they use Private ads. Facebook is worth over $250 billion and 80% of their revenue comes from ads. Google ,or rather Alphabet (the 2nd most valuable brand in the world) also depend mostly on ads.
Hope I clarified it?

4 Likes 2 Shares

Re: How Websites Work by pacespot(m): 7:47pm On Mar 23, 2016
seunlayi:
thank God for this thread, better than those snakes thread.

I Noticed it is over a week now since we have a snake thread making it to FP. What is going on?

Let's stop blaming the Mods for pushing those threads about Celebrity, Entertainment, Nudity, and Snakes as you said into frontpage. Look at this thread, as educating as it is, how many people are viewing or commenting on it. The Mods are only doing what is good for the business, more traffic means more sales. I'm a website owner too, I know the essence of a traffic.

So the moderators are only playing by the rule set by Nairaland users. Cheer!

1 Like 1 Share

Re: How Websites Work by pacespot(m): 7:51pm On Mar 23, 2016
seunlayi:
thank God for this thread, better than those snakes thread.

I Noticed it is over a week now since we have a snake thread making it to FP. What is going on?


Let's stop blaming the Mods for pushing those threads about Celebrity, Entertainment, Nudity, and Snakes as you said into frontpage. Look at this thread, as educating as it is, how many people are viewing or commenting on it. The Mods are only doing what is good for the business, more traffic means more sales. I'm a website owner too, I know the essence of a traffic.

So the moderators are only playing by the rule set by Nairaland users. Cheer!
Re: How Websites Work by Adefave1(m): 8:06pm On Mar 23, 2016
Op please can u tell me some of the illegal legal streaming sites.
Re: How Websites Work by Nobody: 8:19pm On Mar 23, 2016
simplisticly simplified... welldone man. am enjoying your dish!

1 Like

Re: How Websites Work by liztemi(f): 8:45pm On Mar 23, 2016
@ OP......Thanks for the explanation the "story" incorporated with it made it quiet interesting cheesy

1 Like 1 Share

Re: How Websites Work by Luizkid(m): 8:49pm On Mar 23, 2016
trust me Man, u're a good teacher ur presentation n use of examples is awsom..kiu

1 Like 1 Share

Re: How Websites Work by HeavenTree: 8:51pm On Mar 23, 2016
Nice Post. But why are you son of lucifer?

1 Like

(1) (2) (3) (Reply)

I Want To Insert Calendar On A Website / How To Write Search Engine Optimized (SEO) Article / Is Creating A Website Still Advisable In This Era?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 90
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.