⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.63
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
onlinestore.ng
/
app
/
Http
/
Middleware
/
View File Name :
DomainRequest.php
full(); $segments = explode('/', str_replace(''.url('').'', '', $uri)); $segments = $segments[1] ?? null; if($segments != null) { $local = parse_url(config('app.url'))['host']; // Get the request host $remote = request()->getHost(); // Get the remote domain // remove WWW $remote = str_replace('www.', '', $remote); // $store = Store::where('domains', '=', $remote)->where('enable_domain', 'on')->first(); // if ($local != $remote){ // $domain = \App\Models\CustomDomainRequest::where('status','1')->where('custom_domain',$remote)->first(); // // If the domain exists // if(isset($domain) && !empty($domain)) { // $store = \App\Models\Store::find($domain->store_id); // if($store && $store->enable_domain == 'on' && $store['domain_switch'] == 'on') { // return $next($request); // } // } else { // $sub_store = \App\Models\Store::where('subdomain', '=', $remote)->where('enable_subdomain', 'on')->first(); // if ($sub_store && $sub_store->enable_subdomain == 'on') { // return $next($request); // } else { // return abort('404', 'Not Found'); // } // } // } } return $next($request); }else{ return abort('404', 'Not Found'); } } }