+File .htaccess:
+file antiddos.php :
Code:
PHP:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?tuoitreit.vn [NC]
RewriteRule !antiddos.php http://tuoitreit.vn/antiddos.php?%{REQUEST_URI} [QSA]
Code:
PHP:
<?php
$text=$HTTP_SERVER_VARS['QUERY_STRING'];
$text = preg_replace("#php\&#si",'php?',$text);
echo '<center><a href=http://tuoitreit.vn'.$text.'>[Click vao day]</a><br>de vao dien dan.</center>';
?>