Pointers have to be one of the most difficult concepts to understand to new programmers. Although it’s relatively easy to use them, the main question still remains: why? I will show you how to create pointers in C-languages and why you can and should use them.
CSRF, also known as Cross-Site Request Forgery is a trick which is commonly targeted to web forms. This is often used by (spam)bots but also by individuals who might try to break into your application.
At these times your visitors have all kinds of different screen resolutions and also resize their browser window. Resolutions vary between 1280×1024, 1680×1050, 1920×1200, 2560×1440 and all make a huge difference. And then there’s the difference between people who have their browser window maximized, while others resize it so they can fit other windows on the screen as well. There’s a relatively easy way to make it fit the window properly.
In this short tutorial I will show you some ways to protect a (login) web form against the most common types of attacks, making it much safer.
I will use PHP as the server-side programming language, but any other language will provide similar features.
Since PHP version 5 has been released, it has been improved with Object-Oriented Programming, using classes. It’s one of the most used features in system programming languages like C++ and can now be used in PHP.
In this article I assume you know the following in advance:
– You know what variables are and how to assign values to them in PHP.
– You know what a function is and how it works.
Before I start, I want to tell a bit about functions.
During the creation of PHP scripts you might encounter a situation where a value needs to be passed from one page to another. This will mostly be required when sending the visitor through a wizard or a login screen. This can be achieved by using:
- HTTP GET
- HTTP POST
I will briefly explain each of those.