بستن ایپی به روشی جدید

                   بستن ایپی به روشی جدید

 

 

 

                

                جهت اموزش به ادامه مطلب بروید.


                                         

var banned_ip_page = “http://www.google.com“; // This is the page to direct to if the ip is banned

// get the visitor’s IP address

var visitor_ip = ’88.176.68.51′; // This is the visitor’s IP address as returned by the server

// User defined test – add as many groups as you need for all the banned ips;
// Make sure you modify these example ip addresses and do not lock yourself out.
// The || (vertical bars or pipe lines) mean “or” and the == is used to test equality
// Each individual test is enclosed in parentheses
// The entire set of tests is enclosed in parentheses

if ( // opening parenthesis for the entire test

// You may change the tests from here
(visitor_ip == “88.176.68.51” )
|| (visitor_ip == “198.74.51.33″ )
|| (visitor_ip == “198.74.61.68″ )
|| (visitor_ip == “66.55.61.68″ )
// until here …

) // closing parenthesis for the entire test
{ alert(“Sorry, your IP has been banned from this site“);
document.location = banned_ip_page; }

 

 

 

افزودن به علاقه‌مندی‌ها حذف از علاقه‌مندی
  • 04 خرداد 1392
  • 0 دیدگاه
  • 14778 بازدید
اشتراک گذاری

سایر پست ها

دیدگاه ها

اشتراک‌گذاری

ورود کاربران

خوش آمدید! لطفا وارد حساب خود شوید

رمز عبور را فراموش کرده‌اید؟
حساب کاربری ندارید؟

فراموشی رمز عبور

نام کاربری یا ایمیل خود را وارد کنید

یا

ثبت نام کاربران

در چند ثانیه حساب کاربری خود را بسازید

قبلا ثبت نام کرده‌اید؟

نظرات کاربران

دیدگاه خود را با ما در میان بگذارید