paradate Posted March 28, 2011 Share Posted March 28, 2011 I am having a problem: my site is under a robot attack which changes IPs every few seconds.I see number of users online 20000-35000 and they all going to 404 page.It causes my site to collapse every few minutes.I know that there is a script "DenyHost" which you can install on your server and it blocks the attack.Does anyone know of anything like that for Prestashop? Or any other solution?(the site that is being attacked used to be a forum before so some hacker aimed an automatic script that attacks that site all the time). Link to comment Share on other sites More sharing options...
jhnstcks Posted March 28, 2011 Share Posted March 28, 2011 What you could do is create a never ending loop for the bot using htaccess files and 301 redirects. If you know where the bot is coming from you could even redirect it back to its own website. Link to comment Share on other sites More sharing options...
jhnstcks Posted March 29, 2011 Share Posted March 29, 2011 If you put your site into maintainence mode and add the following to the maintainence.tpl file <meta http-equiv="refresh" content="0; url=http://www.whateverwebsiteaddressyouwant.com/"> This will redirect the bot away from your site to whatever site you specify. Link to comment Share on other sites More sharing options...
jhnstcks Posted March 29, 2011 Share Posted March 29, 2011 redirect it back to its own website. I like.header('HTTP/1.1 301 Moved Permanently');header('Location: http://www.fbi.gov');exit(); This would be a good idea apart from the fact that his website will be the refering website for the bot, and i'm guessing the fbi wont be too happy. Link to comment Share on other sites More sharing options...
Burhan BVK Posted March 29, 2011 Share Posted March 29, 2011 I doubt any form of redirect will work. It is likely that the robot just sends a request to the website without reading any response, yet alone interpret any redirect instructions. .htaccess rules might help if you can identify the bot within .htaccess. Link to comment Share on other sites More sharing options...
highlandspring Posted March 30, 2011 Share Posted March 30, 2011 I suggest you ask your hosting company for help, or if you have a dedicated server - get help from one of the many site admin services that are around. DDos types of attacks are getting more common especially if you start to get a lot of visitors Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now