Cross Site Scripting (XSS) Examples, Tutorials – How to Prevent In PHP

What is Cross Site Scripting (XSS). How to prevent this vulnerability in code.

XSS commonly known as cross-site scripting is a code injection technique or attack. In XSS user can inject any malicious HTML, Javascript or any other client side snippet on a web application. It is one of the major security attack after Sql Injection.

MongoDB Tutorial Part- I – Creating a Database

mongoDBMongoDB is an open-source document-oriented database. Document-oriented means it stores the data in a file. MongoDb comes under the category of NoSql database. It stores the data in BSON (Binary JSON) format. It can be accessed through javascript notation and comes with their own shell. It is written in C++.

Difference Between Single & Double Quotes in PHP

What’s the difference between single & double quotes in PHP. This question is generally asked in interviews to check how well you understand the concepts. Also if you know the difference it will help you in your day to day programming.

In PHP you can specify  the strings using four different ways single quotes , double quotes, heredoc and newdoc syntax.  But most of the time single & double quotes is used to specify strings.

Convert Files from one format to another easily using cloudconvert

cloudconvertNow how many times you are looking for some software when you want to convert your file from one format to another. Assume you want to convert your jpg file to pdf or any other format. We spend lot of time to find converter which converts file from one format to another.

But now there is an easy way to do this using cloudconvert. cloudConvert is a cloud based free file converter.

How to Prevent Image Hotlinking through .htaccess

What is Hotlinking

Hotlinking is the process of displaying an image on a website by linking to the same image on another website. It is mostly occurs with images. In simple words suppose i want to show some gadget picture on my website so instead of uploading the picture on my website, i link this picture to someone website using source as

Understanding SQL Injection in PHP & Ways to Prevent it

sql_injectionWhat is SQL injection and how to prevent them in your web application

In top ten PHP Security Vulnerabilities list, SQL injection hits the number one position.  In SQL Injection, an attacker executes or pass malicious SQL statements through which they can either steal your data or completely destroy it. This data is passed through the browser to your web application. It occurs mainly if your input data is not validated properly.

To understand, how unvalidated data can cause such a big problem, let’s understand this through example.

Suppose, You have written a code for login module. In login module, A user enters a username and password. Based on username and password your script allows a user to log in.

Adminer Plugin to Manage WordPress Database Inside Admin Dashboard

Adminer_pluginWhen there is any datbase administration work, many of us use phpMyAdmin. Today i share you one of the best wordpress plugin which allow you to manage your wordpress database easily. Using  Adminer you can manage wordpress database inside admin dashboard.