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

Incorrect referrer ban?
#1

Okay, so far Commentics comments has been installed, and i have it running so that it is able to receive and accept comments for 1 page so far. I have added another page, and using the 'Add Page' feature to add my new page along with the updating of the reference id number linked into the corresponding page. The comments form loads fine. However the problem comes when trying to submit a comment. For some reason when submitting i get the error message "you have just been banned" or "you have previously been banned", and i follow the instructions( Manage->Bans and remove the ban along with deleting browser cookies). The reason it states for these bans is an 'Incorrect referrer'...What does this mean, and how can i resolve it?

Undecided

Reply
#2

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.

If you're using v1.1, then you can disable the referrer check in Settings -> Security, although the best solution would be to make sure that your two URLs match.

Have you completed the interview?
Reply
#3

Okay, I have now upgraded to v1.1, and have disabled the Settings -> Security -> referrer check. This now allows comments through. Great!. However, that's not the best solution as you mentioned...btw: the website i'm using the comments script on isn't 'live' as yet, and its just a 'http://localhost/personal/index.php' or 'http://127.0.0.1/personal/index.php' address. Does that make a difference to the matching of of the two URL' s being checked?
If not -> i'm not too sure if i follow about the matching URL case. Lets say my website is located at: either of the previously listed addresses: this is the address that the comments are submitted from.
After a comment is submitted it goes to 'http://loc...p#process'.
What is location of the URL i entered when creating the page?, i don't get that bit... and where/how do i make sure they are matching?
Reply
#4

It shouldn't matter at all that you're on localhost. My test site is on WAMP and the referrer check works fine.

However it does matter if your page URL is 'http://localhost/*' and in the admin panel it is 'http://127.0.0.1/*' or vice versa. These will be regarded as two different URLs.

Let's say your comment form is on this page:
http://localhost/personal/index.php

Then when you create the page in Manage -> Pages, the URL should match:
http://localhost/personal/index.php

I remember someone else having a very similar problem recently and they also had the form on an index.php page. What happens if you try with a page not called index.php? Maybe it's because the URL is being regarded as 'http://localhost/personal/'.

If it still doesn't work after that then it's not a big problem. That's why I added the ability to disable it.

Have you completed the interview?
Reply
#5

Okay...perfect! So it was the case of 'localhost' vs. '127.0.0.1' in the URL reference. It was registered as 'http://localhost/*' in the Manage -> Pages and i was using the 'http://127.0.0.1/*' address in my browser's URL, and the error was something as simple as forgetting to change the '127.0.0.1' back to 'localhost' that after un-checking the Settings -> Security -> check referrer. So is there be a possibility for 'localhost' connections that the '127.0.0.1' and the 'localhost' are to be synonymous with each other? i.e 127.0.0.1 = localhost && localhost = 127.0.0.1? Just a thought...

Otherwise lets mark this as:
SOLVED!

Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by iwede
26-Oct-2011, 06:01 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)