As Claude pointed out, this isn't wise as it will block some people
who use a person firewall.
One more possible solution; in the your form (which posts to your
action page), set a session variable. Check for (and clear) the
session variable in the action page. If it's not there, the form was
posted directly from a bot or form some other site.
On Nov 15, 2007 7:08 AM, Mike Little <[EMAIL PROTECTED]> wrote:
> thanks for the reply alan,
>
> the submission of spam is at the moment being 100% filtered using
> CFFormProtect. what i am trying to do is prevent being able to come directly
> to the addcomment page (which yes is a form page).
>
> what i have just tried at the top of the page which seems to be working is...
>
> <cfif NOT listContainsNoCase(CGI.HTTP_REFERER, 'articles.cfm') AND (NOT
> isDefined("FORM.submit"))>
> <cflocation url="index.cfm" addtoken="no">
> </cfif>
>
> what do you think?
>
> mike
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293350
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4