Denny or allow access for IP ranges
We can block a single domain or a complete range such as entire countries. deny from 99.1.0.0/255.255.0.0 To allow Range of Multiple Ip address: allow from 99.88 99.88.77 11.22.33 Place these code in .htaccess
We can block a single domain or a complete range such as entire countries. deny from 99.1.0.0/255.255.0.0 To allow Range of Multiple Ip address: allow from 99.88 99.88.77 11.22.33 Place these code in .htaccess
Several sites have been harmed due to improper permissions. This interesting hack gives the site a semi-auto healing mechanism. Warning: Your mileage may vary. {code type=PHP} #Ensure CHMOD settings for specified file types # remember to never set CHMOD 777… Read More »Automatically CHMOD various file type
In PHP you can send values by encoding and decoding the URL by using this encoding and decoding method. {code type=PHP}echo base64_encode(‘I am encoded PHP’);{/code} You will get and output something like this. {code type=PHP}VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw=={/code} This can be decoded by… Read More »Encode and decode URL
There are many times you wonder why the w3c validation is not going through for you. Please make sure that the img tag has the width and height attributes. What will happen if the image file comes dynamically and you… Read More »How to get image size dynamically
PHP is a powerful scripting language, which is best suited for server side web programming. There are plenty of modules in PHP like session, cookies, post, files etc that make its to be a versatile scripting language. It is also… Read More »PHP: Hypertext Preprocessor