One Hat Cyber Team
Your IP :
18.189.32.37
Server IP :
192.145.235.60
Server :
Linux ngx365.inmotionhosting.com 5.14.0-427.33.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 30 09:45:56 EDT 2024 x86_64
Server Software :
Apache
PHP Version :
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
centos12
/
public_html
/
centosuit
/
app
/
Traits
/
View File Name :
StoreHeaders.php
<?php namespace App\Traits; use DeviceDetector\Parser\Client\Browser; use Exception; trait StoreHeaders { public function storeHeaders($model): void { $whitelist = array( '127.0.0.1', '::1' ); try { if (class_exists(Browser::class)) { $model->headers = json_encode(\Browser::detect()->toArray(), JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES); if (!in_array(request()->ip(), $whitelist)) { $model->register_ip = request()->ip(); if (file_exists(database_path('maxmind/GeoLite2-City.mmdb'))) { if ($position = \Stevebauman\Location\Facades\Location::get(request()->ip())) { $model->location_details = json_encode($position, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES); } } } } } catch (Exception $e) { // echo $e->getMessage(); } } }