Comments on: Referer Spam Blocker for b2evolution http://isaacschlueter.com/2005/06/referer_spam_blocker_for_b2evo/ Just slightly more than my twitter stream. Fri, 20 Nov 2015 19:13:06 +0000 http://wordpress.org/?v=2.5.1 By: Isaac http://isaacschlueter.com/2005/06/referer_spam_blocker_for_b2evo/#comment-342 Isaac Mon, 13 Feb 2006 17:59:35 +0000 #comment-342 JG, Please see <a href="http://www.catb.org/~esr/faqs/smart-questions.html" rel="nofollow">this page</a> and read all that it has to say. In particular, pay attention to the <a href="http://www.catb.org/~esr/faqs/smart-questions.html#rtfm" rel="nofollow">sections</a> on <a href="http://www.opengroup.org/onlinepubs/009695399/utilities/crontab.html" rel="nofollow">RTFM</a> and <a href="http://www.google.com/search?q=cron+job" rel="nofollow">STFW</a>. I am happy to share information, and even help to enlighten where I can. I try not to be rude, even when annoyed. But I'm not teaching an "Intro to Web Mechanics" course. You're going to have to hunt this beast on your own, Grasshopper. JG,

Please see this page and read all that it has to say.

In particular, pay attention to the sections on RTFM and STFW.

I am happy to share information, and even help to enlighten where I can. I try not to be rude, even when annoyed. But I’m not teaching an “Intro to Web Mechanics” course.

You’re going to have to hunt this beast on your own, Grasshopper.

]]>
By: guchuj05 http://isaacschlueter.com/2005/06/referer_spam_blocker_for_b2evo/#comment-338 guchuj05 Sun, 12 Feb 2006 20:02:28 +0000 #comment-338 "I saved this script in my admin folder, and set up a cronjob to run it every 4 hours, along with my antispam update script and recheck script." What is a cronjob? And how do you set one up? Thanks, J “I saved this script in my admin folder, and set up a cronjob to run it every 4 hours, along with my antispam update script and recheck script.”

What is a cronjob? And how do you set one up?
Thanks,
J

]]>
By: Isaac Schlueter http://isaacschlueter.com/2005/06/referer_spam_blocker_for_b2evo/#comment-186 Isaac Schlueter Tue, 30 Nov 1999 00:00:00 +0000 #comment-186 For some reason, whenever the cron job runs this script, access to my whole site is denied with a 403 error. The .htaccess file is fine, permissions are fine. Actually, I just download my .htaccess, delete it, and re-upload it, and it's fine again. I can run the script manually 100 times without any problems, but when cron runs it, I get the 403 error. Very annoying. I guess I'll just have to figure out another way to skin this cat. In the mean time, I'm just running it manually every day or so.If you have this problem, then another way that you could do this is to set up a scheduled task in Windows that runs a batch file. 1. Create a text file, and write this in it:<code>"C:Program FilesInternet Exploreriexplore.exe" "http://your.site.com/admin/b2antispam_genhtaccess.php"</code> 2. Save it as htaccess.bat 3. Create a new scheduled task (Start > Control Panel > Scheduled Tasks) and point it at the htaccess.bat file you created.Update: The problem doesn't occur if I cron a script that includes this one. Weird. I just had my antispam updater/rechecker include this at the end if it adds anything. For some reason, whenever the cron job runs this script, access to my whole site is denied with a 403 error. The .htaccess file is fine, permissions are fine. Actually, I just download my .htaccess, delete it, and re-upload it, and it’s fine again. I can run the script manually 100 times without any problems, but when cron runs it, I get the 403 error.

Very annoying. I guess I’ll just have to figure out another way to skin this cat. In the mean time, I’m just running it manually every day or so.If you have this problem, then another way that you could do this is to set up a scheduled task in Windows that runs a batch file.

1. Create a text file, and write this in it:"C:Program FilesInternet Exploreriexplore.exe" "http://your.site.com/admin/b2antispam_genhtaccess.php"

2. Save it as htaccess.bat

3. Create a new scheduled task (Start > Control Panel > Scheduled Tasks) and point it at the htaccess.bat file you created.Update:
The problem doesn’t occur if I cron a script that includes this one. Weird. I just had my antispam updater/rechecker include this at the end if it adds anything.

]]>
By: ferrethouse http://isaacschlueter.com/2005/06/referer_spam_blocker_for_b2evo/#comment-187 ferrethouse Tue, 30 Nov 1999 00:00:00 +0000 #comment-187 If this works it is friggin brilliant. I'm getting hit with about 20 gigs of referer spam bandwidth per month and I can't afford it. I've even considered moving to WordPress. I hope this helps!! Thanks. Now I just need to figure out how to set this up as a cron job (I'm not a php/perl/unix person). If this works it is friggin brilliant. I’m getting hit with about 20 gigs of referer spam bandwidth per month and I can’t afford it. I’ve even considered moving to WordPress. I hope this helps!! Thanks.

Now I just need to figure out how to set this up as a cron job (I’m not a php/perl/unix person).

]]>
By: Movie Reviews http://isaacschlueter.com/2005/06/referer_spam_blocker_for_b2evo/#comment-188 Movie Reviews Tue, 30 Nov 1999 00:00:00 +0000 #comment-188 I implemented this on my site yesterday and it's working flawlessly, I'm a person that likes to tail my access_log throughout the day and I was so pissed off at the amount of constant referral spam I was seeing. After setting this up (dead easy) and telling apache not to log referer_spam I'm a happy camper. I implemented this on my site yesterday and it’s working flawlessly, I’m a person that likes to tail my access_log throughout the day and I was so pissed off at the amount of constant referral spam I was seeing. After setting this up (dead easy) and telling apache not to log referer_spam I’m a happy camper.

]]>
By: Daethian http://isaacschlueter.com/2005/06/referer_spam_blocker_for_b2evo/#comment-189 Daethian Tue, 30 Nov 1999 00:00:00 +0000 #comment-189 I've hit a problem. When I try to leave a comment on my second blog... the page comes up asking you to click to bypass yada yada... but when you click it returns to my main blog and so it continues in a vicious circle. How do I fix this??? I’ve hit a problem. When I try to leave a comment on my second blog… the page comes up asking you to click to bypass yada yada… but when you click it returns to my main blog and so it continues in a vicious circle.

How do I fix this???

]]>
By: Isaac Schlueter http://isaacschlueter.com/2005/06/referer_spam_blocker_for_b2evo/#comment-190 Isaac Schlueter Tue, 30 Nov 1999 00:00:00 +0000 #comment-190 Daethian, What do you have in your .htaccess file? That behavior would seem to indicate that the script thinks that your site is a spammer, which obviously isn't correct. Daethian,

What do you have in your .htaccess file?

That behavior would seem to indicate that the script thinks that your site is a spammer, which obviously isn’t correct.

]]>
By: Daethian http://isaacschlueter.com/2005/06/referer_spam_blocker_for_b2evo/#comment-191 Daethian Tue, 30 Nov 1999 00:00:00 +0000 #comment-191 Right now there should be nothing. I restored the original file last night. How do I tell it I'm not a spammer? Right now there should be nothing. I restored the original file last night.

How do I tell it I’m not a spammer?

]]>
By: Eric http://isaacschlueter.com/2005/06/referer_spam_blocker_for_b2evo/#comment-192 Eric Tue, 30 Nov 1999 00:00:00 +0000 #comment-192 The script works very nicely. At the end of it it chmods the htaccess file to 0600, this for some reason causes the htaccess to block everyone with 403. I changed it to 0777 and it works fine. The script works very nicely. At the end of it it chmods the htaccess file to 0600, this for some reason causes the htaccess to block everyone with 403. I changed it to 0777 and it works fine.

]]>
By: Isaac Schlueter http://isaacschlueter.com/2005/06/referer_spam_blocker_for_b2evo/#comment-193 Isaac Schlueter Tue, 30 Nov 1999 00:00:00 +0000 #comment-193 Wow, thanks Eric. I had run into that problem, but only once in a while. Thanks for finding and pointing out the offensive line. I commented out the lines in the script, so hopefully others won't have this problem. Wow, thanks Eric.

I had run into that problem, but only once in a while. Thanks for finding and pointing out the offensive line.

I commented out the lines in the script, so hopefully others won’t have this problem.

]]>

Warning: fopen(/var/www/isaacschlueter.com/public/wp-content/cache/meta/wp-cache-5a5a1cd99d3fa457cbdbc95a1c22fa88.meta) [function.fopen]: failed to open stream: Permission denied in /var/www/isaacschlueter.com/public/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 378

Warning: fputs(): supplied argument is not a valid stream resource in /var/www/isaacschlueter.com/public/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 379

Warning: fclose(): supplied argument is not a valid stream resource in /var/www/isaacschlueter.com/public/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 380