Mar

24


Sometimes you want to confuse potential hackers by faking your file extension, this may reduce automated hacker attacks. If you have Apache server and you are allowed to write .htaccess file, write the following code in your .htaccess file.

Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^(.+)\.html$ /$1.php [NC,L]

In the example above, it will allow you to refer to your files as example.html instead of example.php



Similar Posts

Comments

Name (required)

Email (required)

Website

Speak your mind

Sponsors




Links