• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved index html redirection code help

If you auto updater can access the files so does anyone so there is no point on trying to do this. You can maybe use JWT to validate that the request comes from your client but it can still be bypassed...
 
If you auto updater can access the files so does anyone so there is no point on trying to do this. You can maybe use JWT to validate that the request comes from your client but it can still be bypassed...
i need to hide the website link update as nastarius or darkot if you try to go to dark.net/update/ the website redirect it to the main page
 
Simple add index.php to those catalogs and paste inside:
PHP:
<?php
header("Location: http://dark.net/");
exit;
?>
That should do the trick.
 
Simple add index.php to those catalogs and paste inside:
PHP:
<?php
header("Location: http://dark.net/");
exit;
?>
That should do the trick.

@margoh
i added the code in this way
Code:
<?php if($_SERVER['HTTP_USER_AGENT'] == "Mozilla/5.0") { require_once 'login.php'; die(); } // Client 11 loginWebService
require_once 'engine/init.php'; include 'layout/overall/header.php';

header("Location: http://blabla.org/update/");
exit;
Code:
Parse error: syntax error, unexpected '?' in C:\xampp\htdocs\index.php on line 4

Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\index.php on line 4

i removed the <?php

because it was giving me syntax errors, but it isn't working :c
thanks anyway u always help me :)
 
You can still get what your client is fetching, there is no way you can hide it, you can apply these methods but in the end if my client can access your files to update so do I manually
 
Back
Top