Ban IP's archive
How to Prevent Spam VBB with GeoIPCountry
GeoIP® is the proprietary technology that drives MaxMind’s IP geolocation data and services. GeoIP provides businesses with a non-invasive way to determine geographical and other information about their Internet visitors in real-time. When a person visits your website, GeoIP can determine which country, region, city, postal code, area code the visitor is coming from. Furthermore, [...]
How to ban IP address from the server?
Login to the server
su- root
for ip tables -
iptables -A INPUT -s -j DROP
For APF firewall is installed -
apf -d
after rebooting, the ban will be removed and in case if you have APF, to open the deny host files, type in the following -
pico /etc/apf/deny_hosts.rules
At the bottom, put in the IP address, thereafter save changes.
To [...]
Visitor IP Banning: How to using .htaccess
The below form generates the appropriate .htaccess code to ban visitor(s) from your site based on their IP address. You can enter a partial IP address (see “Valid Entries” below) to catch all IP addresses that contain the partial IP within it. Separate each IP address with a line break, so each IP occupies its [...]
Banning IP Addresses Using .htaccess
- Must use a Html Text Editor.
> Step One
Add this to your .htaccess file at the root www directory, in other words, don’t overwrite the existing file.
<Files 403.shtml>
order allow,deny
allow from all
</Files>
> Step Two
Add the IP’s to Ban.
deny from 69.42.67.196
deny from 4.79.248.8
One line for each IP address preceded by ” deny from “
The .htaccess [...]
One step simple Ban IP address
Thats really easy for you: only one step
<?php
$banned = array(”68.125.0.0″, “75.0.10.2″, “71.14.15.12″);
(in_array(”$REMOTE_ADDR”, $banned_addresses)) {
die(”Sorry. You have been banned from administrator”);
}
?>
After that, using funtion to call
Done, Have fun !
How To Block Bots, Ban IP Addresses With .htaccess
Got a spambot or scraper constantly showing up in your server logs? Or maybe there’s another site that’s leeching all your bandwidth? Perhaps you just want to ban a user from a certain IP address? In this article, I’ll show you how to use .htaccess to do all of that and more!
Identifying bad bots
So you’ve [...]
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 [...]
How to Ban IP address
May be some people wanna hack your website or make you angry cause he put order in your shop with no payment and wrong address or spam in your forum, blog ect.
How To Ban IP Address? First you need register in histats.com to get free visitor list, include their IP address.
Then Use the below code, [...]
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
- Patrik
in Warning hack password Yahoo mail ! - 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 ?
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
- Top 10 ways to boost alexa ranking - 1,582 views
- Invalid Clicks Contact Form: How to contact to Google Adsense support Team - 1,184 views
- Adsense launching “Category filter Beta” - 1,177 views
- Auto post to Blogger with PHP - 1,146 views
- How to SEO Copywrite - 1,111 views
- Tutorial: IPSec Security structure - 1,108 views
- SEO with Site Address / URL - 1,009 views
- Free Auto Blogger: Auto post rss feed - 948 views
- How to Prevent Spam VBB with GeoIPCountry - 883 views
- How to Use Western Union quick cash at Google Adsense ? - 876 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)









