• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Protecting html files?

dony

New Member
i use php scripts to read html files.
so can we protect html files and by the way our php scripts can read them.
i tried chmod to protect them but php do not want to read them.
any ideas?
can we do something with htacess or else?or some other ways to protect html?
thanks
 
Anyone that can view the page can get at your HTML code.

I'm not totally sure what you're asking either...

-mk
 
If your trying to hide your HTML includes why not just use some nearly impossible to guess sub-directory name like "includedhtmldocs".

Is this what you wanted help with...?
 
let me say like this.
i do want my visitors to denied from viewing html file not the source.
well we can make it with .htacess just typing there

deny from All

and then my private folder where html files are will be denied to view all files.(to all).and this files can be read by PHP with fread command.
but what i want is just prevent some files not all of them.
i have tried
deny forbiden.html from All (in .htacess).but no changes.
anyone knows how to prevent certain files.
and how can we prevent files if server do not allow .htacess
thanks for your answers guys.
 
why not put the html in a sub dir and us .htaccess to protect them. php could still read them as it uses the local file system not http.
 
Back
Top