Monthly Archives: November 2019

How to add or remove value from javascript array

JavaScript arrays are used to store multiple values in a single variable. An array is a special variable, which can hold more than one value at a time. Using an array literal is the easiest way to create a JavaScript Array. var array_name = [item1, item2, …]; JavaScript arrays allow you to group values and iterate over them.… Read More »

how to block requests with specific string using .htaccess in apache

These days common problem of hacking of website by hacker with scrips. They always use some common method or string to hack it. Now you can prevent these requests by adding some simple .htaccess rules. You could send a 403 Forbidden (access denied) in case -admin is requested : RewriteEngine On RewriteCond %{REQUEST_URI} ^/(.*?)admin RewriteRule ^(.*)$ – [F,L]  … Read More »