Simple BAN IP address
Code 1:
<?php
// Add more IP need ban address here
$banned_ip=array(”xyz.xyz.xyz.xyz”,”zzz.zzz.zzz.zz z”);
//Verify IP
foreach ($banned_ip as $banned)
{
//Verify Ip to banner
if (strpos($_SERVER['REMOTE_ADDR'],$banned) !== false)
{
die(’Sorry. You are not allowed access…’);
}
}
?>
Code 2:
<?php//Your ip have been banner by administrator
$banned_ips[0] = “000.000.000.001″;
$banned_ips[1] = “000.000.000.002″;
$banned_ips[2] = “000.000.000.003″;
$banned_ips[3] = “000.000.000.004″;
$banned_ips[4] = “000.000.000.005″;
$banned_ips[5] = “000.000.000.006″;// Connect database to check arrange IP
for($K = 0; $K<sizeof($banned_ips); $K++)
{
//Ip will be banner if true !
if($banned_ips[$K] == $_SERVER['REMOTE_ADDR']){
die(”You have been Banned from viewing this Page.”);
}
}
?>
Done. Have fun
Random Post
Related Articles
- How to create Shortlinks with Google Apps
- Auto post to Blogger with PHP
- How to use Adsense again if get banned
- Mechanisms against Spam Mail
- How to protect login on Wordpress admin ?
- How to submit your website on Microsoft
- How to setup POP3 Yahoo for business ?
- How to setup POP3 yahoo mail ?
- How to surf website by VPN
- How to setup Google Apps mail services
Recent Posts
- Free Panda Internet Security 2010: Windows 7 Launch Party
- FREE 1-year license of Kaspersky Internet Security 2010!
- Warning hack password Yahoo mail !
- How to Use Western Union quick cash at Google Adsense ?
- Western Union available in VietNam
- Facebook for Nokia phones
- DailyMotion now offering Embed HD Video Players
- Free Adword voucher $50
- How to create Shortlinks with Google Apps
- Auto post to Blogger with PHP
- Free Auto Blogger: Auto post rss feed
- The Google Analytics API and PHP
- Using the Google Analytics API - getting total number of page views
- Google Analytics PHP API class
- Blogger team warning Spam posts
- Adsense launching “Category filter Beta”
- Alternatives to Google Adsense by other programs
- What is Adsense Smart Price ?
- How to avoid Adsense Smart Pricing ?
- How to use Adsense again if get banned
Recent Comments
- Nancy
in Auto post to Blogger with PHP - Tony M J
in DailyMotion now offering Embed HD V… - fonfenVak
in Enable Ping track in wordpress - DaiVyCorp - Int…
in My Google AdSense Account Is Disabl… - DaiVyCorp - Int…
in My Google AdSense Account Is Disabl… - AlexAxe
in VPN Protocols - jennefoh
in Make more money: YouTube Videos Com… - GlenStef
in VPN Protocols - DaiVyCorp - Int…
in Why should I use proxy servers ? - Alexwebmaster
in VPN Protocols
Most Commented
- Top 10 ways to boost alexa ranking (4)
- How to Boost Alexa Ranking (4)
- VPN Protocols (4)
- Make more money: YouTube Videos Coming to AdSense (2)
- My Google AdSense Account Is Disabled (2)
- Top 10 secrets success with business online (1)
- SEO with Site Address / URL (1)
- Free Ways to Increase Your Blog Traffic (1)
- How to SEO wordpress, The Complete Guide (1)
- Manual Unzip Server Command (1)
Most Viewed Post
- Adsense launching “Category filter Beta” - 1,077 views
- How to SEO Copywrite - 990 views
- Top 10 ways to boost alexa ranking - 809 views
- How to Prevent Spam VBB with GeoIPCountry - 705 views
- SEO with Site Address / URL - 658 views
- Tutorial: IPSec Security structure - 658 views
- Invalid Clicks Contact Form: How to contact to Google Adsense support Team - 657 views
- Auto post to Blogger with PHP - 653 views
- Youtube with google adsense - 601 views
- Warning hack password Yahoo mail ! - 585 views
Categories
- How to (51)
- SEO (33)
- Google adsense (31)
- Business land (13)
- Security Policies (21)
- Tips (26)
- Technology news (7)
- Traffic guide (9)
- Top secrets MMO (6)
- Tutorials (10)










No Comment
Leave Your Comments Below