Prevent direct access to files from URL – PHP htaccess

When developing a web application, it is very important for you to prevent the user from accessing files directly from the URL. Because someone might…

Check if user has opened 2 tabs at the same time – Javascript

If you have used WhatsApp Web, you may encounter a situation where if you open the web.whatsapp.com in multiple tabs in the same browser, you…

How to deal with cached CSS, JS, and image files

In this article, I am going to teach you, how you can update your cached files. Suppose, you have written a Javascript file named “script.js”.…

Custom sort associative array – PHP

Suppose you have an associative array in PHP with key-value pair. If you loop through it, all the values will be displayed in the order…

How to generate SSH keys from cPanel and use it in Terminal

Following are the steps to generate SSH keys from cPanel and use them in your Command Prompt or Terminal: Open your cPanel home page. Goto…

What to do if you accidentally delete your files during iCloud upload – Mac

First disable your iCloud from  ->System Preferences -> Apple ID Uncheck “iCloud Drive“. It will say that it will delete all the files from…

Please disable your adblocker or whitelist this site!