This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Keep getting Incorrect Referrer ban
#1

What am I doing wrong? Just testing out a simple message.
Reply
#2

I am getting it too. I am trying to test it on our site www.drinkuchill.com/feedback.php and I get banned myself.
Reply
#3

What did you enter for the URL when creating the page in Manage -> Pages?

It should be:
http://www.drinkuchill.com/feedback.php

Have you completed the interview?
Reply
#4

James, the problem with your site is that your page can be accessed by these two URLs:

http://www.societygonewild.com/emptypitchers/
http://www.societygonewild.com/emptypitchers/index.php

Commentics checks whether the URL the form is submitted from matches with the URL you entered when creating the page.

If it doesn't match then you will get banned for incorrect referrer.

There are two solutions:

1. Use .htaccess to make sure your URL is always the same (good for SEO):
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

2. Remove the referrer section of code starting at line 57 in the following file:
comments/includes/app/processor.php

In Commentics v1.1 you will be able to turn the referrer check on and off in the admin panel.

Have you completed the interview?
Reply
#5

Very cool. Thanks for the quick fix Steven. It's working. Went with the second route. Not worried about SEO for this site but for others I'll try the other... unless you want me to try it now so you know for sure.
Reply
#6

Glad it's working (it's okay that you didn't try the first solution).

Have you completed the interview?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Rameshrao55
30-Sep-2015, 08:49 PM
Last Post by archym
02-Jul-2011, 02:29 PM
Last Post by Steven
09-Aug-2010, 09:29 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)