Oops. Fixed it. Needed to add urldecode() to my conditional.

-----Original Message-----
From: Che Vilnonis [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 06, 2008 10:12 AM
To: CF-Talk
Subject: RE: Application.cfc question: Where would be the best place to put
this code?

OK. This is interesting. If I place the simple test code below in
onRequestStart, I am *not* re-directed and I still get the error email and
the error page displayed when a link like the one below is clicked. Why
might this be happening? Is the error being processed first? onRequestStart
always fires before onError, right?

http://www.mydomain.com/index.cfm?type=selectModel&makeid=http%3A%2F%2Frabot
nitsa.ru%2Fjoomla__%2Fadministrator%2Fbackups%2Farim%2Fzaf%2F

<cfif cgi.query_string contains "http://";>
        <cflocation url="index.cfm">
</cfif> 



-----Original Message-----
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2008 9:58 AM
To: CF-Talk
Subject: RE: Application.cfc question: Where would be the best place to put
this code?

That makes sense to me. 

-----Original Message-----
From: Che Vilnonis [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2008 8:54 AM
To: CF-Talk
Subject: RE: Application.cfc question: Where would be the best place to put
this code?

OK. If I were to use a regex, should I still place the code in
onRequestStart and use a re-direct with <cflocation>?

-----Original Message-----
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2008 9:44 AM
To: CF-Talk
Subject: RE: Application.cfc question: Where would be the best place to put
this code?

Well, the spammers had to get your page from somewhere...the page is likely
only invalid because they're tacking on extra query params right? So
removing the offending params might allow a valid request to get through.
Remember that it's always possible that a legitimate person could have
clicked a spammed link to get to your site. Why kill that legit request when
you don't have to?




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306967
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to