Pagina 1 din 1

Cum pot pune farbidden la fisierele html

Scris: 30-Oct-2011, 10:12:35
de Kart3x
Cum pot face sa apara asa cand cineva acceseaza linkul la tema pt a fura?
Forbidden

You don't have permission to access /styles/MF_May/template/overall_header.html on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2 Server at forum.mindfreak.ro Port 80

Re: Cum pot pune farbidden la fisierele html

Scris: 30-Oct-2011, 13:49:56
de Cătălin
Salveză-ţi înainte fişierele .cfg şi .css

Trebuie să creezi un fişier .htacces cu următorul cod,îl pui în styles :

Cod: Selectaţi tot

<FilesMatch "\.(cfg|html)$">
    Order Allow,Deny
    Deny from All
    </FilesMatch>
-un alt fişier .htacces cu următorul cod,îl pui în theme:

Cod: Selectaţi tot

<Files *.css>
       Order Allow,Deny
       Deny from All
    </Files>

Re: Cum pot pune farbidden la fisierele html

Scris: 30-Oct-2011, 14:21:45
de Kart3x
Merge. Dar cel din theme nu merge...blocheaza fisierul stylesheet.css si style.cfg si nu mai afiseaza imaginile...
Cel cu .html functioneaza perfect

Re: Cum pot pune farbidden la fisierele html

Scris: 30-Oct-2011, 15:26:28
de Gotyc
pune un index in fiecare tema si paia in styles/.httaccess pune

Cod: Selectaţi tot

<Files ~ "^\.html">
 Order allow,deny
 Deny from all
 Satisfy All
</Files>



<Files index.php> 
deny from all 
 Satisfy All
</Files>