⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.45
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
dnc
/
@core
/
app
/
Http
/
Middleware
/
View File Name :
Demo.php
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Support\Str; class Demo { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { $not_allow_path = [ 'admin-home', 'user-home' ]; $allow_path = [ 'admin-home/visited/os', 'admin-home/visited/browser', 'admin-home/visited/device', 'admin-home/visited-url', 'admin-home/media-upload/all', 'admin-home/media-upload/loadmore' ]; $contains = Str::contains($request->path(), $not_allow_path); if($request->isMethod('POST') || $request->isMethod('PUT')) { if($contains && !in_array($request->path(),$allow_path)){ if ($request->ajax()){ return response()->json(['type' => 'warning' , 'msg' => 'This is demonstration purpose only, you may not able to change few settings, once your purchase this script you will get access to all settings.']); } return redirect()->back()->with(['type' => 'warning' , 'msg' => 'This is demonstration purpose only, you may not able to change few settings, once your purchase this script you will get access to all settings.']); } } return $next($request); } }