note 128763 added to reserved.variables.server

From: Date: Thu, 27 Jul 2023 16:14:06 +0000
Subject: note 128763 added to reserved.variables.server
Groups: php.notes 
Request: Send a blank email to php-notes+get-220723@lists.php.net to get a copy of this message
This code can be used to help find somone that tries to dig throught the server files to find something. .htaccess ErrorDocument 404 /your.php ErrorDocument 403 /your.php <?php //get time $time = date("H:i:s d.m.y"); //get user address $usr = $_SERVER['REMOTE_ADDR']; //get entered url of the "visitor" $url = $_SERVER['REQUEST_URI']; //get your servers address $ip = $_SERVER['SERVER_ADDR']; //put toogether $sus = "[".$time."] ".$usr." ".$ip.$url.PHP_EOL; //write an log file file_put_contents("susip.txt", $sus, FILE_APPEND); ?> ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.157.134 (proxied: 87.134.77.191) ---- Manual Page -- https://php.net/manual/en/reserved.variables.server.php Edit -- https://main.php.net/note/edit/128763 Del: integrated -- https://main.php.net/note/delete/128763/integrated Del: useless -- https://main.php.net/note/delete/128763/useless Del: bad code -- https://main.php.net/note/delete/128763/bad+code Del: spam -- https://main.php.net/note/delete/128763/spam Del: non-english -- https://main.php.net/note/delete/128763/non-english Del: in docs -- https://main.php.net/note/delete/128763/in+docs Del: other reasons-- https://main.php.net/note/delete/128763 Reject -- https://main.php.net/note/reject/128763 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220723) next »