GameOgre.com Free MMORPG Forums  

GameOgre.com Review Directory Arcade Drakensang
Forum Shop MMORPG Blog MMOG Wiki Contact Info

Go Back   GameOgre.com Free MMORPG Forums > Blogs

Old

access denied

Posted 03-09-2011 at 03:43 PM by shugo
Updated 03-09-2011 at 03:52 PM by shugo

OK so you have troublesome bots, mail harvesters and scammers on your site. How do you prevent them from accessing your website completely?

In this blog I'll explain how.

1. open notepad
2. write the following piece of code:

Code:
<Limit GET POST>
order allow,deny
deny from 218.188.74.50
deny from 114.134.83.141
deny from 1.64.121.62
deny from 213.186.120.196
deny from 178.239.58.143
deny
...
shugo's Avatar
Elite Ogre
Posted in Uncategorized
Views 550 Comments 0 shugo is offline
Old

weird visitors to your site part 2

Posted 03-04-2011 at 01:23 PM by shugo

OK So you have found an annoying bot. How do you go about blocking that bot, if captcha does not work?

Code:
<?php
$ip = $_SERVER['REMOTE_ADDR'];
//ecample ip of the bot
$blockip = 0.0.0.0
//start wrap
if ($ip !=$blockip){
/*THE SCRIPT ON THE PHP FILE*/
//close wrap
}
?>
This piece of code should be wrapped around the php script of your page. The remote adress fetches the IP of the visitor....
shugo's Avatar
Elite Ogre
Posted in Uncategorized
Views 442 Comments 0 shugo is offline
Old
Rating: 1 votes, 5.00 average.

weird visitors to your site

Posted 03-02-2011 at 11:08 AM by shugo
Updated 03-04-2011 at 01:26 PM by shugo

http://whatismyipaddress.com/ip-lookup

OK suppose you've looked at your site statistics and you want to weed out the troublemakers, how do you go about searching for them and sift them out of the main population?

Well you can trace the IP and look it up in a geoip database. These databases are not always 100% accurate, but they get it right most of the time.

http://whatismyipaddress.com/ip-lookup

If you fill in the IP, you'll get a response...
shugo's Avatar
Elite Ogre
Posted in Uncategorized
Views 607 Comments 0 shugo is offline
Old

how to catch cheaters without getting swamped in data (part 2)

Posted 10-15-2010 at 02:17 PM by shugo
Updated 10-15-2010 at 02:21 PM by shugo

Basically what we are doing with this piece of code is to calculate the interquartile_range (IQR) and then check if the user submitted variable is an extreme.

The variable, in this example the price of a certain good, that the player bought from an another player, is checked for abnormalities. We want to know, if the price is a low extreme or a high extreme. If the variable is a low extreme, then it is likely that the player who bought the resources of the other player is trying to...
shugo's Avatar
Elite Ogre
Posted in Uncategorized
Views 825 Comments 0 shugo is offline
Old

how to catch cheaters without getting swamped in data

Posted 10-15-2010 at 01:52 PM by shugo
Updated 10-15-2010 at 02:17 PM by shugo

First our example

In the second part of the blog I'll explain what the code does and why I wrote it that way.

http://www.gameogre.com/forums/blogs...ta-part-2.html

Code:
/*START PRICE CHEATERS CHECK*/
$tabcoresult = mysql_query("SELECT COUNT(*) AS pricescount FROM taberna WHERE shoptype ='$shoptype'");
$tabcorow = mysql_fetch_array(tabcoresult);
$shopscocheck = $tabcorow[pricescount];
...
shugo's Avatar
Elite Ogre
Posted in Uncategorized
Views 604 Comments 0 shugo is offline

All times are GMT -6. The time now is 06:43 AM..


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.