Posts

Web-Application Security

Web-Application Security is something all web engineers should doubtlessly know off. I saw that most engineers out there have no idea of Web-Application Security. That is the reason I have chosen to compose this blog to make individuals mindful of in any event the fundamental and most basic sorts of assaults that programmers endeavor on Web-Applications. I will likewise disclose to you some great programming practices to anticipate such assaults. Let's start with SQL Injection . I am sure that almost everyone has heard of this, It is when an attacker put in SQL code in forms, comments, pics or any other input that your Web Application takes, in a way so that it would get executed on your database . If an attacker can somehow accomplish this he can do severe damage to your Web-Application. He can steal, delete, or change the user data that your Web-App runs on. However, Do You need to worry about this type of an attack? Well, most of the time the answer is NO !! Now you must

Auto-Scaling and Dynamic Pages

I am sure if you are even remotely related to Web-Development you have heard the term Dynamic-Pages . Well, let me tell you it is one of the most misused terms of Web Development. When we use the term Dynamic Page (or web page), most of the time what we actually mean is an Auto-Scaling Page (or web page). these two are actually two different things. An Auto-Scaling Page  as the name suggests is a web page that scales (resizes and repositions) content in that web page according to the screen size of the device viewing it. This is done in a way so that the content looks good and is comfortable to read on every device on which the web page is viewed. This is done because nowadays many users view the web pages mobile devices which have much smaller screen sizes. Most of the websites nowadays are  Auto-Scaling (Including this very blog that you are viewing right now). This can be done easily using CSS and Javascript coding. Even if you don't know that much CSS or javascript y

Sessions and Cookies

Image
One very important concept that all Web-Developers must know of is Sessions . Now most of us may already be familiar with the term, but read on to know what is it exactly and why do we need them so much. Let's start off by understanding a little bit about HTTP requests. But before that please make sure you have an Idea of Servers, Clients, and Browsers . An HTTP request is made by your browser whenever you connect to a Website or a Web-app. Whenever an HTTP request is made by the browser the following happens: An HTTP connection is opened. A URL, headers, and request body (if required) are sent. The server responds with an HTTP response: status_code, headers and response body. The HTTP connection is closed. Now, this format has a problem. That is HTTP is a stateless protocol.  That is One HTTP request made by the browser actually has nothing to do with any other HTTP request. From the server’s point of view, all HTTP requests are completely independent. The problem i

URL simplified for you

Image
URL or  Uniform Resource Locator  is simply put an address of resource (or file) on the web. It is a combination of: The protocol used to reach the file The Domain Name of the server The location of the file in the server. (Note this may not be the actual location of the file) The file name Other than this the URL may also contain GET request variables and their values. Out of these only, the Domain name and protocol are must in any URL rest are optional and some URLs may not have them.   For example in the current URL: Click image to enlarge it The Protocol used is Http(Hyper Text Transfer Protocol) The Domain Name of the server is http://webdevelopmentbasicstuff.blogspot.in The file location is /2017/05/. The file name is "url-simplified-for-you.html" This means that on the server webdevelopmentbasicstuff.blogspot.in you are accessing the file "url-simplified-for-you.html" Here we have no GET request variables. However, it is not neces

Servers and Web Servers, Clients and Browsers

We all know that the websites on the Internet are all hosted on a Server Computer. But the question is do you really know what a server, a client or a browser is? Well, from a Web Developers view a server is basically a software. A server is a computer program that provides services to other computer programs (and their users) in the same or other computers. The computer that a server program runs in is also frequently referred to as a server but actually, it is just another computer (Maby a very powerful one that's it). A Web Server is one type of server that serves files in response to HTTP request made to it. It is pre- programmed to serve a particular file(Mostly an HTML file but not necessarily) in responses to every HTTP request. However, we must remember that a Web Server is not the only type of server. Remember that Web Server is not the only type of server. A DBMS (Data Base Management System) is also a type of server that responds to SQL requests. A Web Se

IP addresses, Domain names and DNS

Did you know that all you ever need to connect to any computer in the world via the internet is its IP address?  That's right if you have the IP address of any computer you can send an HTTP-request(or an FTP request) to that computer. Whether to respond to the request or not is completely up to that computer. An  IP address  is short for Internet Protocol address. There are two versions of IP addresses the 32-bit IPv4 and 128-bit IPv6. The internet currently uses the IPv4 address which is a combination of four numbers each can range from 0 to 255, for example, 139.59.79.235 However remembering these IP addresses to connect to every website is difficult. That is why 99% of websites have a Domain Name , which is normally used by you to connect to their website. These Domain Names are an alternative to IP addresses that are easy to remember. You need an IP address to get to any website(Server) on the internet . However, you almost never type in the IP address of any website,