Implemented such a possibility on the site 2ip.ru Spy. You throw a picture to the user, he enters it, and all data (IP, etc.) is sent to the owner.

  • In the address bar, the path to the picture. - Dmitry Alekseevich
  • Well, yes, maybe it is implemented from PHP, but how to make a disguise under the picture? - Dmitry Alekseevich
  • nety nikakoy maskirovki. Header otdaetsa gif - Maksym Prus
  • I tried to make a header with gif, but when entering the gif, nothing happened - Dmitry Alekseevich
  • zahodit na php ynuzhno - on otdaet put kartinky - Maksym Prus

2 answers 2

Put three files in the directory - .htaccess , spy.php , spy.gif (picture)

 -- .htaccess -- RewriteEngine On RewriteRule ^ip\.gif$ spy.php 

 -- spy.php -- <? if ($f = fopen('ip.txt', 'a+')) { fwrite($f, $_SERVER['REMOTE_ADDR']."\n"); fclose($f); } header('Content-Type: image/gif'); readfile('spy.gif'); ?> 

You give the link to ip.gif , the last IP appears in the ip.txt file. Accordingly, in spy.php write anything, but do not forget the last 2 lines.

  • ahah))) while poking around here everything is ready))) - Palmervan
 //htaccess RewriteEngine On RewriteRule ^([a-zA-Z0-9-]+)\.gif$ spy.php/$1 [NC] //PHP <?php if(isset($_GET['spy'])) { //все данные (IP и прочее) отсылаются владельцу } else { //делаем картинку заманилку на GD PHP))) } ?> //HTML <a href="http://axample.com/image.gif"><img src="http://axample.com/image.gif" /></a> //PS Суть я думаю ясна) Знания + Фантазия = Результат)