Add exams from exam58 to exam98
This commit is contained in:
13
exam65/VisitorsIP.php
Normal file
13
exam65/VisitorsIP.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
//How to get visitor ip address
|
||||
require 'config.inc.php';
|
||||
|
||||
foreach($ip_blocked as $ip){
|
||||
if($ip == $ip_address){
|
||||
die('Your ip address, ' . $ip_address . ' has been blocked');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<h1>Welcome !</h1>
|
||||
Reference in New Issue
Block a user