|
Posted by WeeWillyTonka on 09/30/65 11:29
"Dasdan" <dasdan20_antispam@hotmail.com> wrote in message
news:mn.751f7d5a0e8ad4fd.41130@hotmail.com...
:> WeeWillyTonka wrote:
: >> Is there a easy way to add a bad word list to a form.
: >> I tell you why my guestbook is away being spamed
: >> so I was thinking-if I add a bad word list,I could filter
: >> word like poker ,online games, ect.
: >>
: >> I use :
: >> if (!strstr($_SERVER['HTTP_REFERER'], 'mysite.com')) { exit ("Invalid
: >> referrer");
: >>
: >> but it is still being spamed by online casino sites
: >>
: > Use an random generated image with numbers, text etc. (called Catcha
[1]) for
: > verification.
: >
: > Regards
: > Stefan
: >
: > [1]
: > http://en.wikipedia.org/wiki/Captcha
:
:
: try a putting a .htacess file on your webserver
: mod_rewrite should be installed.
: take a look at the apache.org site, mod_rewrite
:
: here is mine::
: take a look at the last part : #block bad referers an refererspam
:
: test it here : http://dasdan.be/loan.php
: loan keyword in referer is blocked , and apache will redirect to
: /errors/badrefer.php
:
: Kind regards,
: dasdan
:
: ----------
: RewriteEngine On
: #block bad ips from spamservers
:
: RewriteCond %{REMOTE_ADDR} ^64\.4\.195\.62$ [OR]
: RewriteCond %{REMOTE_ADDR} ^64\.27\.27\.150$ [OR]
: RewriteCond %{REMOTE_ADDR} ^66\.92\.132\.241$ [OR]
: RewriteCond %{REMOTE_ADDR} ^66\.212\.229\.233$ [OR]
: screte|encounters) [NC,OR]
: RewriteCond %{HTTP_REFERER}
:
(porn|discount|store|blevensdamman|teen|free|adds|adspoll|loan|phentermine|wor
: ldwide|evilplots|bayfronthomes) [NC]
:
: RewriteRule !/errors/badreferer\.php /errors/badreferer.php [PT]
:
:
: -----------
:
:
: --
:
: Kevin Wood AKA Dasdan
: http://www.dasdan.be
:
:
I tryed this but keep gettig
[Mon Oct 17 16:33:42 2005] [alert] [client 80.42.**.**]
/home/userwill/public_html/site/book/.htaccess: RewriteCond: bad argument
line '%{HTTP_REFERER}'\n
any ideas ?
Cheers
WW
[Back to original message]
|