İçeriğe geç
ShiftDelete.Net
Haber ara/ SDN'ye SorGiriş
Haber Akışı SDNTV İnceleme Forum Yapay Zeka Akıllı Telefon Elektrikli Otomobil Oyun ShiftDelete.Net Global Teknoloji Haberleri Mobil Otomobil Donanım Savunma Bilim Sosyal Medya İnternet Giyilebilir Teknoloji Rehber Ürünler Son dakika Yazarlar
  1. Ana sayfa
  2. Topluluk
  3. Programlama
  4. Web Programlama (PHP, ASP, HTML, CSS, JavaScript)
Web Programlama (PHP, ASP, HTML, CSS, JavaScript)

PHP Erişim Engelleme

javascript:??06.03.200910 cevap7.804 görüntüleme
Cevaplar
2009'den beri13 mesaj
#4
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:?? Konuyu açan
2008'den beri165 mesaj
#6
aliozkan dedi: ↑
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 ;
 
<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

 if($anahtar != 'abc')
header('Location:404.php');
nasıl kullanabilirim

saygılarımla
javascript:?? Konuyu açan
2008'den beri165 mesaj
#7
javascript:?? dedi: ↑
Yanlız ;
 
<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

 if($anahtar != 'abc')
header('Location:404.php');
nasıl kullanabilirim

saygılarımla
:helpsmilie::helpsmilie::helpsmilie::helpsmilie::helpsmilie::helpsmilie::helpsmilie::helpsmilie:
javascript:?? Konuyu açan
2008'den beri165 mesaj
#9
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
2009'den beri9 mesaj
#10
bu işlem için session kullanabilirsin.
javascript:?? Konuyu açan
2008'den beri165 mesaj
#11
Neuro dedi: ↑
bu işlem için session kullanabilirsin.
Kodları alabilir miyim

Cevabını yaz

Cevap yazmak için giriş yap ya da üye ol. Eski forum kullanıcı adın ve parolanla girebilirsin.