Neler yeni

Welcome to SATBİL FORUM PAYLAŞIM

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Bir Satbil Forum Efsanesi

Satbil Reklam Alanı

Satbil Forum Reklam

ip engelleyici

PowerDns

New member
Local time
01:33
Katılım
30 Ocak 2008
Mesajlar
57
Tepkime puanı
1
Puanları
0
Bunu istediğiniz sayfaya katarak girmesini istemediğiniz ip yi sayfadan atabilirsiniz kolay gelsin.

ziyaretçinin ip sini alalim

<%
IP = Request.ServerVariables("REMOTE_ADDR" )
%>

simdi biz bunu aldik.mesela diyelim ki ziyaretçinin ip si yasaklanmis ip ise bunu hata sayfasina yönlendirelim.

eger yasak listesinde degil ise

bu sayfaya girebilsin

diyelimki yasak ip 81.133.22.22 (salladim) olsun

gelelim kodlara

'egerki kullanicin ip si 81.133.22.22 ise
if ip="81.133.22.22" then
'hatasayfasina yönlendir
response.redirect "hata.asp"
'degil ise islem yapmasin.sayfada gezebilsin
else
end if

kodlari toplayip derlersek

<%
IP = Request.ServerVariables("REMOTE_ADDR" )
'egerki kullanicin ip si 81.133.22.22 ise
if
ip="81.133.22.22" then
'hatasayfasina yönlendir
response.redirect "hata.asp"
'degil ise islem yapmasin.sayfada gezebilsin
else

end
if

%>

........................................................
mesela diyelimki elimizde birkaç tane ip adresi var bunlari hata sayfasina yönlendirelim

<%
IP = Request.ServerVariables("REMOTE_ADDR" )
'egerki kullanicin ip si 81.133.22.22 veya 81.133.22.19 ise
if
ip="81.133.22.22" or ip="81.133.22.19" then
'hatasayfasina yönlendir
response.redirect "hata.asp"
'degil ise islem yapmasin.sayfada gezebilsin
else

end
if

%>
 
shape1
shape2
shape3
shape4
shape7
shape8
Üst