-
[Release] IP Ban Galore.
Quote:
HALP ME MENZ HAX0RS R KEELING MA GUNZ SERVAR AND I KANT PREVENT DEM FRM REGISTARING NEW ACCAOUNTS!
In order to do anything at all, you first need a .htaccess file. If you have one already (used for a custom 404 error page or whatnot), you can just add this code anywhere in the file. If you don't have one, you can just create a new text document and rename it .htacess without anything preceding the dot.
Within your .htaccess file, add this code:
Code:
<Limit GET POST PUT>
order allow,deny
deny from <ip address>
allow from all
</Limit>
Just enter the IP address in the specified place and drop it into the folder where you would like this to take effect. If you want this ban to be global, just drop it in the ROOT folder of your web server. The .htaccess file affects the folder it's in and all subfolders, so dropping it into the ROOT will affect your entire site.
If you wish to ban multiple IPs, just add more
Code:
deny from <ip address>
You can also range IP ban using this. Say you want to ban 71.717.717.21, but the hacker is smart and knows how to change his IP via re-dialing. You can just input 71.717.717, which will effectively block all connections from 71.717.717.0 - 71.717.717.255
When a user has been banned, they will encounter a 403 error. You can do whatever naughty things you want with a custom 403 page (like redirect them to some weird porn site or something luls). To create a custom 403 error page, add this code at the beginning of your .htaccess file
Code:
ErrorDocument 403 /403.php
You can replace the /403.php with the path that your 403.php is located. You can also rename 403.php to banned.php or whatever the hell you want.
-
Re: [Release] IP Ban Galore.
Nice, very helpfull to noobs :P
-
Re: [Release] IP Ban Galore.
Good :D But it had nothing to mean with Gunz -,- but w/e
-
Re: [Release] IP Ban Galore.
-
Re: [Release] IP Ban Galore.
good, but bad for when people have Dynamic IPs.
Gotta ban the Mac Address somehow.
-
Re: [Release] IP Ban Galore.
Doesn't stop proxies even with mac ban.
-
Re: [Release] IP Ban Galore.
hmm, somehow ban proxies? xD
or somehow restrict the use of proxies on the server/web
-
Re: [Release] IP Ban Galore.
Where i put .htacess File?
in Server Files or ..?
-
Re: [Release] IP Ban Galore.
1. Google .htaccess and ask yourself, why didnt I do this before instead of asking a question that can be easily answered?
2. .htaccess has nothing to do with server files if you googled it. Google is NOT your friend....HE IS YOUR GOD!
.htaccess goes in the folder you want it to be (if you just want that game. for example : http://localhost/gunz/ < it would go in the gunz folder) if you want it global, just put it in the main directory of your web.
-
Re: [Release] IP Ban Galore.
kk thx i ill try if work O_O
-
Re: [Release] IP Ban Galore.
-
Re: [Release] IP Ban Galore.
Oh, you can also range ban certain countries to allow only NA to register or something.
-
Re: [Release] IP Ban Galore.
-
Re: [Release] IP Ban Galore.
Quote:
Originally Posted by
GSDxLegacy
Oh, you can also range ban certain countries to allow only NA to register or something.
That's not really a solution.
-
Re: [Release] IP Ban Galore.
Very nice, but you know how I can write something such that when the hacker tries to come to my site, his computer shuts down? or a malicious virus is uploaded into his computer? :D
-
Re: [Release] IP Ban Galore.
Quote:
Originally Posted by
wesman2232
hmm, somehow ban proxies? xD
or somehow restrict the use of proxies on the server/web
Just write a PHP script that checks if the user is using a proxy, if so, it'll add the IP to the list.
-
Re: [Release] IP Ban Galore.
Quote:
Originally Posted by
Exiled Hero
Just write a PHP script that checks if the user is using a proxy, if so, it'll add the IP to the list.
thanks for the reply but that post was from 08-31-2008 xD
-
Re: [Release] IP Ban Galore.
Wasn't paying attention to the dates. ;_;
Oh well, naughty me. D:
-
Re: [Release] IP Ban Galore.
-
Re: [Release] IP Ban Galore.
Quote:
Originally Posted by
GSDxLegacy
Code:
<Limit GET POST PUT>
order allow,deny
deny from <ip address>
allow from all
</Limit>
1) Not everyone uses Apache.
2) Why are you only blocking three specific methods? You should be blocking all methods.
-
Re: [Release] IP Ban Galore.
Quote:
Originally Posted by
gWX0
1) Not everyone uses Apache.
2) Why are you only blocking three specific methods? You should be blocking all methods.
all methods? what do u mean?
-
Re: [Release] IP Ban Galore.
Quote:
Originally Posted by
Kyuma
all methods? what do u mean?
Three methods are blocked: GET, POST, and PUT. My suggestion was to block all methods.
-
Re: [Release] IP Ban Galore.
Quote:
Originally Posted by
ThievingSix
Doesn't stop proxies even with mac ban.
and u suggest the hardware ID ban like lambda does D: cant do that bcuz i have no idea how he get the ID xD....
maybe u must check some free hardware-diagnostic software...
-
Re: [Release] IP Ban Galore.
i think that some use registry data to find ids in which they ban o.o
-
Re: [Release] IP Ban Galore.
-
Re: [Release] IP Ban Galore.
is the .htaccess hackable? like can anyond find a way to enter?
-
Re: [Release] IP Ban Galore.
This for Web`s NOT With gunz!
-
Re: [Release] IP Ban Galore.
i know for web im talking about