Fixing XSS Through SVG File Uploads PHP

Using Javascript code inside of an SVG file and then uploading it to a website that accepts SVG files & does not sanitize their content.

This is how a ton of websites fail and are directly exposed to this XSS vulnerability.

You have two choices:

  • Do not allow users to upload SVG files
  • Allow users to upload SVG files, but use an SVG cleaner on upload

Read more

How to use PHP Caching with MySQL Queries to improve performance

I’m going to show you an easy and efficient way of using PHP Caching to help reduce the database calls and improve the performance of your PHP script.

Instead of writing our own caching script and wasting time, we’re going to use the phpFastCache library to help us with our caching needs.

The caching method I’m going to present is file-based and is aimed towards MySQL query results caching.

Read more

How much I earn on YouTube with under 2,000 subscribers

Earnings on YouTube, everyone knows that it is different for each particular niche and it is based on how many views you get.

A few years back, I was extremely curious as to how much a youtuber can earn at different levels of the “journey”, more specifically, at the beginning.

Here is exactly how much I earned on youtube from the moment I got accepted into the adsense program until now💰.

Read more

Top 3 Best PHP URL Shortener Scripts

If you’re looking to start your own URL Shortener for any reason you’re looking in the right place 🙌.

Why would you continue to pay monthly/yearly for premium URL shortening services, when you can self-hosting your own instance would help you pay way less? As you only pay once for the product and your webhost per month.

Some of these products are even SAAS ready, which means that you can start your own URL Shortening business and provide URL Shortening tools and solutions to your users and get paid.

I prefer to only show you the best, highest quality, and updated PHP URL Shortener scripts solutions that you can find on the market in 2020, rather than making a big list with outdated ones.

Read more