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 http://someone.com/gadget1.jpg.

How to Prevent Allowed memory size Exhausted in PHP

If you are working on PHP, then definitely you are familiar with Fatal Error Allowed memory size exhausted. This error occurs when your PHP script exceeds the default memory allocated for execution. Due to which your scripts stop working and shows the error message that allowed memory size exhausted.

To know the default memory allocated for execution, you can check the memory limit in your php.ini file.