Securing PHP Code that Creates Images

This is a discussion on Securing PHP Code that Creates Images within the PHP Language forums, part of the PHP Programming Forums category; .oO(Fox) >Make sure the $HTTP_REFERER is from an "allowed" domain... * It should be $_SERVER['HTTP_REFERER']. * The ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 10-12-2004
Michael Fesser
 
Posts: n/a
Default Re: Securing PHP Code that Creates Images

.oO(Fox)

>Make sure the $HTTP_REFERER is from an "allowed" domain...


* It should be $_SERVER['HTTP_REFERER'].

* The referrer is unreliable. It's not always available and additionally
easy to fake. Relying on it for security issues is _really_ stupid.

Micha
Reply With Quote
  #12 (permalink)  
Old 10-12-2004
Michael Fesser
 
Posts: n/a
Default Re: Securing PHP Code that Creates Images

.oO(Fox)

>Chris Hope wrote:
>
>> However, you also need to allow the images to be seen if the
>> $_SERVER['HTTP_REFERER'] is not set;

>
>Think about this for a second... no referer, no see...


Pretty rude.

>it's *my*
>bandwidth. I don't need anyone hijacking the scripts for their own purposes.


Then you have to think about another solution, using the referrer is
none.

Micha
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:32 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0