rybrns
20.07.2008, 04:51 |
Installation problems (General (english)) |
When installing Spider-trap, I had these problems:
1. The .htaccess file:
When this line is in the file, I get a 500 Internal Server Error always, can't load the main page at all--
RewriteRule ^[^?]*/.[^.] /spider-trap/forbid.php
Removing the line allows the page to load.
2. Trying it out by going to the forbid.php file, all functions then work. But if I close the browser and then try to load the main page, I get a page that says
****************************
Forbidden
You don't have permission to access / on this server.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
****************************
If I go directly to http://mysite.com/spider-trap/forbid.php, then that page does open ok, so the .htaccess file in the spider-trap folder is ok.
My main .htaccess file says
ErrorDocument 401 /errors/401error.php
ErrorDocument 403 spider-trap/forbid.php
ErrorDocument 404 /errors/404error.php
DirectoryIndex index.html index.php index.shtml
Spider-trap puts these lines in:
Order Deny,Allow
Deny from nnn.nnn.nnn.nnn
(I did change the name "spider-trap" in setup to another name as instructed.)
The Internal Server Error can be caused caused by something wrong with a .htaccess file, but I don't see where. Could it be cured by the rewrite rule mentioned in #1 above, but that rule has a syntax error? Right now, if someone whose IP address had been used by a spammer and got trapped tries to access the site, all he would get is that 500 error.
Can you help? I'd appreciate it. |
JR-EWING
20.07.2008, 11:22
|
Installation problems |
Sorry i have forget something in the htaccess file
should be:
RewriteEngine on
RewriteRule ^[^?]*/.[^.] /spider-trap/forbid.php
»
» Removing the line allows the page to load.
this line are not needed to get spider-trap working
it is for security reason for access on .htaccess files from external.
»
» 2. Trying it out by going to the forbid.php file, all functions then work.
» But if I close the browser and then try to load the main page, I get a page
» that says
»
» ****************************
» Forbidden
» You don't have permission to access / on this server.
this should be okay
»
» Additionally, a 500 Internal Server Error error was encountered while
» trying to use an ErrorDocument to handle the request.
» ****************************
»
this not try
ErrorDocument 403 /spider-trap/forbid.php
» Spider-trap puts these lines in:
»
» Order Deny,Allow
» Deny from nnn.nnn.nnn.nnn
this should be your ip
»
» (I did change the name "spider-trap" in setup to another name as
» instructed.)
»
best regards
Tom Suche noch Programmierer für das Spider Trap Team, die mir helfen die Software weiterzuentwickeln.
|
rybrns
20.07.2008, 17:27
|
Installation problems |
I'll check out the "RewriteEngine on" directive.
» » But if I close the browser and then try to load the main page, I get a
» page
» » that says
» »
» » ****************************
» » Forbidden
» » You don't have permission to access / on this server.
»
» this should be okay
»
» »
» » Additionally, a 500 Internal Server Error error was encountered while
» » trying to use an ErrorDocument to handle the request.
» » ****************************
» »
»
» this not try
»
» ErrorDocument 403 /spider-trap/forbid.php
»
»
I left off the leading "/" and never noticed. Thanks for catching this.
» » Spider-trap puts these lines in:
» »
» » Order Deny,Allow
» » Deny from nnn.nnn.nnn.nnn
»
» this should be your ip
»
It is. Looks like everything works now.
By the way, I cleaned up the English in the installation instructions for my use (but I wish my German was as good as your English is). If you would like a copy -- it's in html -- let me know and I'll send it. You could include it with your English distribution. Again, thanks. |
JR-EWING
21.07.2008, 08:54
|
Installation problems |
» By the way, I cleaned up the English in the installation instructions for
» my use (but I wish my German was as good as your English is). If you would
» like a copy -- it's in html -- let me know and I'll send it. You could
» include it with your English distribution. Again, thanks.
lol - yeah this would be nice - my email is info@spider-trap.de
Best regards Tom Suche noch Programmierer für das Spider Trap Team, die mir helfen die Software weiterzuentwickeln.
|