FreePgs.com Forum

FreePgs Related => Support Requests => Topic started by: Bunny on June 18, 2006, 10:15:38 PM

Title: IP Denial
Post by: Bunny on June 18, 2006, 10:15:38 PM
There is some sort of IP Denial for IP banning from sites?
Title: Re: IP Denial
Post by: dest on June 18, 2006, 10:40:27 PM
Create a file named .htaccess

order allow, deny
allow from all
deny from 127.0.0.1

Just replace 127.0.0.1 with the IP
Title: Re: IP Denial
Post by: Bunny on June 18, 2006, 11:08:59 PM
\o/ For help!!
Title: Re: IP Denial
Post by: sixthcrusifix on June 19, 2006, 11:36:24 AM
if you just wanted to ban from a certain page or script you could also use PHP to get the IP adress.


$domain = GetHostByName($REMOTE_ADDR);


that will giv eyou teh IP Adress. You can compare it to a constant or banned users in a database or whatever.