hi,

bikin file

coba.php
-----------------------------------------------------------------------
<?
 if
(!preg_match("/^http\:\/\/".preg_quote($HTTP_SERVER_VARS['HTTP_HOST'])."/i",
$HTTP_SERVER_VARS['HTTP_REFERER'])){
  echo "Intruder";
  exit;
 }

 echo "my content";
?>
-----------------------------------------------------------------------

coba.html
-----------------------------------------------------------------------
<a href=coba.php>ke coba.php</a>
-----------------------------------------------------------------------


test:
1) panggil coba.php langsung (gagal)
2) panggil coba.php dari php.html (berhasil)

note: logic ini bisa dipakai di semua web programming language

ada efek samping:
hilang +/- 15%  client yang memakai proxy sebagai gateway ....


amlan,

___________________________________________________________
PT. Wajar Global - Wahana Jaringan
IT Outsourcing Company - Software Developer : Application | Web

Technical Implementation:
Platform : Linux, Windows, Sun Solaris
Web: Apache, IIS, Resin
Prog. Lang:  Java, VB, Perl, PHP, ASP, .NET
Database: Oracle, MySQL, Posgre SQL,MS SQL Server, MS Access

what you get is more than what you see !!
website: http://www.wajar.co.id
email: [EMAIL PROTECTED]


----- Original Message -----
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 15, 2004 11:01
Subject: [linux-programming] tanya PHP


> Halo semua...
>
> minta tolong di PHP...
> supaya "page" tertentu gak bisa di "shortcut " di address bar oleh
> user....apa yg harus ditambahkan di page tsb?
> mungkin ada function di PHP yg bisa digunakan?
> atau command & sejenisnya?
>
> Thanks in Advance...guys
> Jodi
>
>
> --
> Berhenti langganan: [EMAIL PROTECTED]
> Arsip dan info: http://linux.or.id/milis.php
>
>


-- 
Berhenti langganan: [EMAIL PROTECTED]
Arsip dan info: http://linux.or.id/milis.php

Kirim email ke