Below is an example of how to change your Status Code 404 page to 3 different random pages:
something-else1.php, something-else2.php, something-else3.php
I was wanting to using use it with modrewrite to make a dynamic set of rules which will be wrote to .htaccess for different users of the site but is it to much of a security risk?
and also will this lag the server?
something-else1.php, something-else2.php, something-else3.php
PHP Code:
<?php
$fh = fopen('.htaccess', 'w') or die('cant open file');
fwrite($fh, 'ErrorDocument 404 /something-else'.rand(3).'.php');
fclose($fh);
?>
and also will this lag the server?
Comment