I have a database full of website urls, the primary key is the $_SERVER["HTTP_HOST"]
of the website.
When a user navigates to ... lets say www.my-epic-example-url.com
, It will connect the the database and use the $_SERVER["HTTP_HOST"]
of that websites, then fetches all the data referencing that website!
What I want to know is, how safe is $_SERVER["HTTP_HOST"]
?
Can it be externally modified?
The only reason i ask is because i read an artical a while back ( cant remember where it was ) saying be careful when using $_SERVER because it is unsafe...
Is this true?
HTTP_HOST
. – Provide