PHP Erişim Engelleme

aliozkan

Öğrenci
Katılım
27 Şubat 2009
Mesajlar
13
Reaksiyon puanı
0
Puanları
0
Büyük ihtimal form.php yi include ediyorsun. Basit bir şekilde form.php yi include etmeden önce anahtar bir değişkene bir değer ata ve öyle include et.
form.php den de eğer o değişkende o değer varsa açsın yoksa yönlendirsin.

index.php:
$anahtar='abc';
include('form.php');

form.php:
if($anahtar != 'abc')
header('Location:404.php');

Bu ara uyarı sakın böyle bir durumda değişkeni include a sokma ;)
 

javascript:??

Asistan
Katılım
12 Ekim 2008
Mesajlar
165
Reaksiyon puanı
1
Puanları
0
Büyük ihtimal form.php yi include ediyorsun. Basit bir şekilde form.php yi include etmeden önce anahtar bir değişkene bir değer ata ve öyle include et.
form.php den de eğer o değişkende o değer varsa açsın yoksa yönlendirsin.

index.php:
$anahtar='abc';
include('form.php');

form.php:
if($anahtar != 'abc')
header('Location:404.php');

Bu ara uyarı sakın böyle bir durumda değişkeni include a sokma ;)
Yanlız ;

PHP:
<input type="IMAGE" SRC="buton.php" name="" value="">
yukarıdaki form kodlarına bunu nasıl uygulayabilirim abc anahtarı değişkenini??

yani buton.php bir resim dosyası forumdaki bir buton yani input tagları arasında
PHP:
 if($anahtar != 'abc')
header('Location:404.php');
nasıl kullanabilirim

saygılarımla
 

javascript:??

Asistan
Katılım
12 Ekim 2008
Mesajlar
165
Reaksiyon puanı
1
Puanları
0
Yanlız ;

PHP:
<input type="IMAGE" SRC="buton.php" name="" value="">
yukarıdaki form kodlarına bunu nasıl uygulayabilirim abc anahtarı değişkenini??

yani buton.php bir resim dosyası forumdaki bir butonu yani buton.php yi input tagları arasında
PHP:
 if($anahtar != 'abc')
header('Location:404.php');
nasıl kullanabilirim

saygılarımla
:helpsmilie::helpsmilie::helpsmilie::helpsmilie::helpsmilie::helpsmilie::helpsmilie::helpsmilie:
 

javascript:??

Asistan
Katılım
12 Ekim 2008
Mesajlar
165
Reaksiyon puanı
1
Puanları
0
Server Error in Application ""


Internet Information Services 7.0

Error SummaryHTTP Error 404.0 - Not Found

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.


Detailed Error InformationModuleIIS Web CoreNotificationMapRequestHandlerHandlerStaticFileError Code0x80070002
Requested URL.tr:80/dsfasPhysical PathD:\HostingSpaces\\wwwroot\Logon MethodAnonymousLogon UserAnonymous



Most likely causes:
  • The directory or file specified does not exist on the Web server.
  • The URL contains a typographical error.
  • A custom filter or module, such as URLScan, restricts access to the file.
Things you can try:
  • Create the content on the Web server.
  • Review the browser URL.
  • Create a tracing rule to track failed requests for this HTTP status code and see which module is calling SetStatus. For more information about creating a tracing rule for failed requests, click here.
Links and More InformationThis error means that the file or directory does not exist on the server. Create the file or directory and try the request again. View more information »




şeklinde bir hata sayası var tabiki.

Benim dediğimi anlamadınız.Ben input tagları save.php yi çağırınca eğer anahtar değer yazı değilse save.php gözükmesin eğer anahtar kod varsa save.php gösterilsin
 

Neuro

Öğrenci
Katılım
17 Mart 2009
Mesajlar
9
Reaksiyon puanı
0
Puanları
0
bu işlem için session kullanabilirsin.
 
Üst