Jump to content
Sign in to follow this  
Sam G

Bad Robot Blocker Support Thread

Recommended Posts

This is the official support thread for Bad Robot Blocker.

 

Description:

 

The Bad Robot Blocker is a simple PHP script designed to trap bad robots and spiders from accessing your website. Bad robots and spiders will ignore anything in your robots.txt file and will attempt to access the directories/files listed in this file. All you need to do is add an entry to your robots.txt file pointing to the directory where the script file is, and once they attempt to access this directory, a message telling them they are banned in displayed in the form of a HTML page.

 

What also happens is that the script will add an entry to your .htaccess file in the root directory of your website to deny access from their IP address, and also full details of the robot/spider are logged in a tab delimited file called botfile.txt which you can download via FTP and open in either a text editor or import into your favourite spreadsheet application.

 

This script is very quick and easy to install, you only need to modify and upload two files.

 

Contribution URL:

 

http://addons.oscommerce.com/info/6303

Edited by Sam G

Share this post


Link to post
Share on other sites

My bad, I had put the wrong index.php in the ZIP file. I have put the correct one in the ZIP file and uploaded the correct one now, sorry about that folks... It's been a long day...

Share this post


Link to post
Share on other sites

v1.0.1 now available.

 

Script is the same as v1.0, but with a more comprehensive/detailed README file.

Share this post


Link to post
Share on other sites

Does this contribution work in windows?

 

I have been trying this out and i am sure i have done this right but it doesn't seem to ban the user even though it recorded the ip and all.

Share this post


Link to post
Share on other sites

It works 100% under Linux, and it works on Apache in Windows as this is what I use to test stuff locally on my MS Vista machine, but it's not been tested with IIS, I assume this is what your server uses?

Share this post


Link to post
Share on other sites

I am getting these errors please help

 

Warning: fopen(/home/gogo/public_html/password_list/botfile.txt) [function.fopen]: failed to open stream: Permission denied in /home/gogo/public_html/password_list/index.php on line 37

 

Warning: fopen(/home/gogo/public_html/.htaccess) [function.fopen]: failed to open stream: Permission denied in /home/gogo/public_html/password_list/index.php on line 40

 

Warning: fwrite(): supplied argument is not a valid stream resource in /home/gogo/public_html/password_list/index.php on line 48

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/gogo/public_html/password_list/index.php on line 49

 

Warning: fwrite(): supplied argument is not a valid stream resource in /home/gogo/public_html/password_list/index.php on line 53

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/gogo/public_html/password_list/index.php on line 54

You have just been banned from this website.

 

 

any ideas please

Share this post


Link to post
Share on other sites
I am getting these errors please help

 

Warning: fopen(/home/gogo/public_html/password_list/botfile.txt) [function.fopen]: failed to open stream: Permission denied in /home/gogo/public_html/password_list/index.php on line 37

 

Warning: fopen(/home/gogo/public_html/.htaccess) [function.fopen]: failed to open stream: Permission denied in /home/gogo/public_html/password_list/index.php on line 40

 

Warning: fwrite(): supplied argument is not a valid stream resource in /home/gogo/public_html/password_list/index.php on line 48

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/gogo/public_html/password_list/index.php on line 49

 

Warning: fwrite(): supplied argument is not a valid stream resource in /home/gogo/public_html/password_list/index.php on line 53

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/gogo/public_html/password_list/index.php on line 54

You have just been banned from this website.

 

 

 

am using PHP Version 5.2.6

 

 

any ideas please

Share this post


Link to post
Share on other sites

I love the contrib.. I'm not much of a coder so I couldn't fix this issue by changing the index.php but I fixed the issue by adding manually a deny from 123.123.123.123 after the

#

#Bad Robot Blocker 1.0.1

#List of banned IP addresses

#

 

what was happening when i was testing this contrib my IP or just the first ip to get banned gets placed in the same line at the last # in the .htaccess so it looks like this

 

#

#Bad Robot Blocker 1.0.1

#List of banned IP addresses

#deny from 123.123.123.123

 

therefore the first IP would not get baned.

 

I'm sure its just a minor fix in the code and again great contrib :-)

Share this post


Link to post
Share on other sites

Thanks for people's feedback.

 

I am working on a new revision to this script which will provide support for cURL (a lot of hosts will enable cURL but disable fopen), and make it easier to set up. I'll post the new version up when it's ready.

Share this post


Link to post
Share on other sites

Hi!!!

 

Sam... Thanks for your contribution.

 

There is something I don't understand. You contribution tries to write directly .htaccess file. If file permissions are set to 655, I obtain this error:

 

Warning: fopen(/home/XXXXXX/domains/XXXX/public_html/XXXXXX/.htaccess) [function.fopen]: failed to open stream: Permission denied in /home/XXXXX/domains/XXXXXX/public_html/XXXXXX/password_list/index.php on line 40

java script:bbc_pop()

 

Evidently it is a security issue setting .htaccess permissions to 777, as it seems the contribution needs...

 

How could I solve this????

 

Thank you very much.

 

Ana

Edited by ajuaristi

Share this post


Link to post
Share on other sites

I think I'm stuck with the same fopen error on line 40. Any updated support for that error?

Everything else seems to be working great.

 

Thanks for your help!

Mike

Share this post


Link to post
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
Sign in to follow this  

×