There should be a way to permit only certain sites from submitting the form.
Xen Web Hosting
Offering ad-free hosting with features such as, cpanel, fantastico, PHP and MySQL support, and more
-------------------------------------------------------------------------------------------------------
Chris
Let's hang on to Harmor, it's not everyday that you find people who walk the walk, not just talk the talk.
Agreed. This is a very ugly trick that leaves the site open to DoS attacks.
Unfortunately, HTTP_REFERER is unreliable at best and the trade-off is that people can not even submit a form.
Agreed. This is a very ugly trick that leaves the site open to DoS attacks.
Unfortunately, HTTP_REFERER is unreliable at best and the trade-off is that people can not even submit a form.
Well perhaps after post submission, the post can then be handled server side, stripping out all HTML and outputting a clean text-only post on the forums?
In the ACP have a text area where you type in sites you allow the form to post from. Somewhere on the code that handles the message get the HTTP_REFERRER from the incoming site and strip it with a regex so it will only display "domain.com".
Check if the domain in question is listed in the textarea the ACP. Xen Web Hosting
Offering ad-free hosting with features such as, cpanel, fantastico, PHP and MySQL support, and more
-------------------------------------------------------------------------------------------------------
Chris
Let's hang on to Harmor, it's not everyday that you find people who walk the walk, not just talk the talk.
If someone disables referrals in their browser, then how can that work? That's why http referrals are unreliable.
It's the same reason why hotlink protection isn't foolproof, because people can disable referrals.
doesn't come here often, cause he has no free time ;_;
How can you disable server side referrals?
Make a link to xenweb.net/http_referrer.php from a browser that has referrers turned off.
Xen Web Hosting
Offering ad-free hosting with features such as, cpanel, fantastico, PHP and MySQL support, and more
-------------------------------------------------------------------------------------------------------
Chris
Let's hang on to Harmor, it's not everyday that you find people who walk the walk, not just talk the talk.
It's not the link that will have referrers turned off; it's the client browser itself.
There are firefox plugins that let you rewrite your own referer but it's only part of the problem: some versions of IE do not have a referrer at all.
It's not the link that will have referrers turned off; it's the client browser itself.
There are firefox plugins that let you rewrite your own referer but it's only part of the problem: some versions of IE do not have a referrer at all.
Yes this is true
I usually keeps referrals turned off in my browser, but if I wanted to go further I could also rewrite them
Last edit by Jasper on Mar 12, 2007, 9:02 amdoesn't come here often, cause he has no free time ;_;
I guess the only way to stop that is deny users from posting from an external site if they have referrals turned off.
Xen Web Hosting
Offering ad-free hosting with features such as, cpanel, fantastico, PHP and MySQL support, and more
-------------------------------------------------------------------------------------------------------
Chris
Let's hang on to Harmor, it's not everyday that you find people who walk the walk, not just talk the talk.