Ad block is installed and active. Please support us by disabling it.
HomeSunday, November 19, 2017, 14:06:46
2

Block Visitors From Specific IP Address

Tuesday, February 10, 15, 15:26:02, 3 Yaers Ago Via wain, Hits: 3301
Learn How To Restrict Users From Different IP Addresses.
Example (.htaccess):
Code:
order allow,deny
deny from 69.64.240.42
deny from 70.89.104.61
deny from 46.17.100.138
deny from 67.228.55.48
deny from 176.14.135.159
allow from all


Example (.php):
Code:
<?php
$ip=$_SERVER['REMOTE_ADDR'];
if($ip == '66.230.230.230'){
die();
}
if($ip == '87.118.104.203'){
die();
}
if($ip == '74.208.243.167'){
die();
?>

Sign In

Sponsor

Related

Getimagesize

Getimagesize function will determine the size of any given image file and return the dimensions along with the file type and a height/width text string to be used inside a normal HTML IMG tag and the correspondant HTTP content type.

Link Base 1.1. - Free PHP Link Index Script

Manage your links using a MySQL database. Features easy install, user submission, and an admin panel to add, edit and remove categories and links.

Preg_Match - PHP Form Validation

PHP form validation with preg_match

Creating a CAPTCHA with PHP :: PHP Tutorial

Captcha Image, This tutorial will show you how to create a form with Captcha.

PHP Str_replace - PHP Tutorial

This function returns a string or an array with all occurrences of search in subject replaced with the given replace value.

How to insert new line (IP Address) with fwrite

How to insert new line (IP Address) with fwrite, Get IP address and write to file.

Jquery PHP Contact Form

This script allows your visitors to send you an email directly from your website.

Syntax highlighting in Smarty

Syntax highlighting for Smarty - Google Code Prettify

Filter Words in PHP - PHP Tutorial

Filter bad words in PHP, requirement(s): PHP server

PHP getdate

Returns an associative array containing the date information of the timestamp, or the current local time if no timestamp is given.
About Author

wain

Date Registered: Sun, Feb 8, 15
Last Time Online: Thu, Jun 15, 17
So far has created 115 entries.
wain
This author has not yet filled in any details.