PDA

View Full Version : لاصحاب المواقع اذاى تعمل باند


smile
07-08-2007, 12:13 PM
De******ion: Use this ****** to block certain IPs from your webpage, by redirecting them to another site. Note that your web server must have SSI enabled (most Linux servers do), with the page using the correct extension (ie: .shtml) in order for this ****** to work. Furthermore, since this ****** relies on Java****** to block the user (by redirecting the person to another site), if he/she disables Java****** in the browser, the ****** will become futile.

بصوا يا شباب فى ناس كتير عندها مواقع خاضه وعاوزين يمنعوا ناس معينه بيدخلوا على الموقع بتاعهم او دوله معينه من الدخول للموقع الموضوع سهل خالص عباره عن اسكريبت صغير بيحول اى وحد يروح عندك لاى موقع تانى وميدخلهوش عندك انت انقل الكود ده فى الهيدار بتاع الصفحه

<****** type="text/java******">

// Block IP address ******- By Java******Kit.com (http://www.java******kit.com)
// For this and over 400+ free ******s, visit Java****** Kit- http://www.java******kit.com/
// This notice must stay intact for use.

//Enter list of banned ips, each separated with a comma:
var bannedips=["23.23.23.23", "11.11.11.11"]

var ip = '<!--#echo var="REMOTE_ADDR"-->'

var handleips=bannedips.join("|")
handleips=new RegExp(handleips, "i")

if (ip.search(handleips)!=-1){
alert("Your IP has been banned from this site. Redirecting...")
window.location.replace("http://www.copts.com")
}

</******>

وبكده هيحول الناس اللى بتدخل عندك على موقع الاقباط او اى موقع انت تكتبه بدل copts

Safnat_Fa3nash007
10-08-2007, 12:12 AM
نحط الكود فين يا سمسم got:)(؟؟؟

وكيف ممكن انحدد اي المواقع نمنعها وايها نسمح ؟؟؟

ashrafb
10-08-2007, 02:41 AM
اعتقد ان السكريبت ده ناقص لايه مافيهوش
var ip
ومافهوش search function
علشان بيطلب ip.search

ياترى انت جربته؟؟؟