2015-04-15, 03:05 PM
* Create one folder with any name
example: abc
* Create index.php file in that directory with the content:
* add to .htaccess
* Replace 1234567890 with any sequence
Note:
* If direct access http://domain/admin will be 403
* Now they just want to run admincp link below to create session: http://domain/abc
sorry, my english is very bad
example: abc
* Create index.php file in that directory with the content:
<?php
$mybbvietnamdotcom_cookie_code="1234567890";
setcookie("mybbvietnamdotcom",$mybbvietnamdotcom_cookie_code,0,"/");
header("Location: /admin/index.php");
?>
* add to .htaccess
RewriteCond %{REQUEST_URI} ^/admin
RewriteCond %{HTTP_COOKIE} !mybbvietnamdotcom=1234567890
RewriteRule .* - [L,F]
* Replace 1234567890 with any sequence
Note:
* If direct access http://domain/admin will be 403
* Now they just want to run admincp link below to create session: http://domain/abc
sorry, my english is very bad