Türkce » WHM cPanel

Siteye giren kisilerin ip adresini alma

http://forum.whmdestek.com/

Go Back   WHM/cPanel Support Platform » Türkce » WHM cPanel
 

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 22.06.09, 05:44
P4
 
Join Date: Oct 2007
Posts: 154
Rep Power: 0
KLAMP is infamous around these partsKLAMP is infamous around these partsKLAMP is infamous around these partsKLAMP is infamous around these partsKLAMP is infamous around these parts
Send a message via MSN to KLAMP
Siteye giren kisilerin ip adresini alma

PHP Code:
<?php 
$REMOTE_ADDR 
getenv('REMOTE_ADDR');  
$body_content="$REMOTE_ADDR";  
$file_name="file.txt"
$fp fopen ($file_name"w");  
fwrite ($fp,$body_content); 
fclose ($fp); 
?>
index sayfasiniza bu kodu koymaniz durumunda siteye baglanan kisinin ip adresini (REAL (GERcEK)) makinede 777 iznini verdiginiz file.txt dosyasina yazar.Bunu basit bir döngü ile giren herkesinkini otomatik aldirtabilirsiniz.

Aklima gelmis iken bunuda buraya ekliyim.Güvenliginiz icin (Web sitesi) kullanabilirsiniz eger hazir bir script kullanip zaten ayni isi yapmiyorsa siteniz.

Alintidir Kaynak linuxsever.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 15.11.09, 22:52
Sempron
 
Join Date: Jul 2008
Posts: 12
Rep Power: 0
ferizli is on a distinguished road
bunu html sayfasına yapıştırdım çalışmadı ve 777 hangi sayfayı yapacaz index.html sayfasınımı file.txt yimi ?
ben ikisinide yaptım denedim olmadı malesef
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 16.11.09, 05:32
WHM VIP Member
 
Join Date: Mar 2008
Posts: 328
Rep Power: 3
Cedric is on a distinguished road
Eğer apache web sunucuda yayın yapıyorsanız panelinizdeki apache access (erişim) loglarına da bakabilirsiniz. Zaten apache sizin için kayıt tutuyor.

@KLAMP: Sana da muhalefet oluyormuşum gibi gelmesin lütfen, ek bilgi olsun diye yazdım. Paylaştıkların için teşekkürler

@ferizli: Arkadaşın verdiği kodlar PHP kodu. Dolayısı ile html içinde çalışmazlar. Sunucun php destekliyorsa html olan uzantıyı php olarak değiştirir ve o şekilde denersen çalışır (sunucuda).
777 yapman gerekli denen dosya "file.txt". Gerçi 644 yapman daha iyi olur.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
reseller bazinda ip adresini degistirme Ömür Akgün WHM cPanel 16 09.11.09 03:28
Domain Olmadan Siteye Erisebilmek maykil WHM cPanel 4 29.04.09 00:53
joomla siteye saldiri vbdestek WHM cPanel 1 08.04.09 15:43
Siteye Gecis Sorunu Crime WHM cPanel 4 13.08.08 11:52
30.06.2007 siteye saldiri CaLViN WHM cPanel 10 24.01.08 01:01



netinternet

Navigasyon
Menü