Note that there are some explanatory texts on larger screens.

plurals
  1. POCan we ever determine if the request was sent from another domain?
    primarykey
    data
    text
    <p>I've read these webpages:<br> <a href="https://stackoverflow.com/questions/2841399/php-form-security-with-referer">PHP Form Security With Referer</a> and <a href="http://www.mustap.com/phpzone_post_62_how-to-bypass-the-referer-se" rel="nofollow noreferrer">http://www.mustap.com/phpzone_post_62_how-to-bypass-the-referer-se</a></p> <p>So basically my question is how do we determine for certain that the request was sent from our own domain? Or is there no way at all?</p> <p>(Question targeted at any server side language including but not limited to PHP/JSP/ASP.Net etc)</p> <p>My Problem: I have a page at <code>http://me.com/login</code> and on form submit, it will post to itself the login particulars. So far so good. until someone else can simply do this </p> <pre><code> &lt;form action="http://me.com/login"&gt; &lt;input name="password" value="p"&gt; &lt;input name="username" value="u"&gt; &lt;/form&gt; </code></pre> <p>and they can send a request to login to my application through their domain. I do not want this. I need a way to make sure that if my page receives a post, its from my domain. Else i will reject it.</p> <p>Besides, I'm abit shock when i read this: <code>There are plugins for Firefox that allow the user to specify whatever value they want to be supplied as the REFERER.</code> source: <a href="http://www.phpbuilder.com/board/showthread.php?t=10324100" rel="nofollow noreferrer">http://www.phpbuilder.com/board/showthread.php?t=10324100</a></p> <p>So we don't even need a hacker to break it now. Just about anyone could do it.</p> <p>I need a solution to make sure that i reject ALL requests not from my domain.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload