Skip to content
Home » PHP

PHP

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

Encode and decode URL

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