Jump to content

It is possibile to block bad clients by ip?


lioz

Recommended Posts

Hi,
you can find my ip range blocker here.
http://www.prestashop.com/forums/viewthread/20384
I tested it in PS 1.1
At the moment I use a modified version which simply looks for the hostname of the visitor.

$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);

if (stristr ($hostname, 'co.uk'))
{
   header("Location: www.somewhere.com");
}


But all the approaches are just for unexperienced visitors and can be bypassed in minutes if they know howto.
Regards, trip

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...