- b2evolution CMS Support Forums
- b2evolution Support
- General Support
- Question about "HideHTSRV" Script for anti spam
1 aneeta Dec 11, 2005 13:48
Hello,
I am tyring to install one of the anti-spam scripts I was referred to from somewhere in this forum. I am sorry, I cannot remember where exactly I received the reference.
Anyway, I managed to download the script from this page:
http://randsco.com/index.php/2005/11/18/anti_spam_script#comments
The instructions are pretty easy to understand:
#(1) Change the 3 variables below to match your site
# (2) Upload script to your cgi-bin or bin directory (ASCII MODE) # (3) Chmod for execute capability (owner, group, world) e.g. 755
# (4) Test via your browser (http://yoursite.com/cgi-bin/hidehtsrv.pl) # (5) Success? Yay! -> Check trackback addy & comment ability #
[If you can't comment, chances are, the 3rd variable isn't correct]
# (6) Failure? Boo :( -> Check your cPanel error logs. #
# It should be straight-forward to get this working. #
# IF you can't ... email me (Scott) at randsco.com (via 'contact us') and I'll see if I can help. #
# (7) After successful testing, set up a cron job to run this script #
# periodically (once a day, late at night, is recommended) #
# (Can you say "good-bye SPAM?") ;-)
AND
# CHANGE the next 3 variables
# (1) Your root directory string (need trailing slash)
my $htmlroot = '/home/howtotellagreatstory.com/';
# (2) The directory tree for your b2evolution install (need trailing slash)
my $blogroot = '/home/howtotellagreatstory.com/b2evolution/';
My problems are these:
When I click on the link- like so:
http://www.howtotellagreatstory.com/cgi-bin/hidehtsrv.pl
I get this message:
The server encountered an internal error or misconfiguration and was unable to complete your request.
These are my questions. I have looked for answers and also tried to email scott but it seems impossible to do so. So I hope that someone will be able to help.
1. Are the root strings and the directory variables set properly?
I don't know where to find out what this thing called my $htmlroot
2. Also, it says to :Chmod for execute capability (owner, group, world) e.g. 755
I don't understand this. when i right click in ftp on this file, the code is 644. Should I change it to 755 (as above) or like I did to get permissions to upload an image (777)?
I hope my questions make sense.
Thank you, in advance.
Phoenix broke our contact form (thank you for alerting me) It's now fixed.
You MUST change the file permissions to run the script (or it will continue to yield those error messages). Try 744 (owner Execute persmissions only) first and see if it runs. If not, then 755 will work (owner, group & world execute permissions).
I have uploaded a new script that works with BOTH pre/post Phoenix installations of b2evolution. Get the newer file.
Please send me a private email and I'll work through this with you.
Thanks.
-stk :D