Hello, i've been spending some time trying to figure out a solution for the hotlinking of the videos hosted at my site, which is imposible to do trough htaccess since firefox has a bug that can't read the referrals in this particular case like IE or chrome would. Well i figured out something, in my cpanel i have the option to protect folders with an username and password, and for what i have tested so far, it works to avoid the hotlinking. So here is my idea, since with that activated the browser will ask for an username and password, is there a way to put a script that fill this form with the correct password & user stored in variables in the php with out the need of the human hand to do it, so i could put this code in every web at my site so they can access the folders (people shouldn't be prompt it with the log in screen since the php should fill it underneath) but since the other webs don't have the password and the php script they are screwed. I hope i made myself clear, and please help me out with this, i just know enough php to edit it but not to create it yet and I'm not sure if this is possible though, if you help me out to create this code I'm sure a lot of people will be grateful since most of video streaming have this issue cuz of the firefox bug.
Well thanks in advance to whoever gives me an idea of how to do this.
And please don't say "use htaccess" just help me with a code that could fill the username and password when prompted by my own website.