Results 1 to 8 of 8

Thread: Hi!

  1. #1
    Alexxi is offline Junior Member
    Join Date
    Jan 2009
    Posts
    19

    Default Hi!

    Hi, how can i disable people downloading content from /templates dir? Or where can i change the path to template dir?

  2. #2
    buyscripts is offline Super Moderator
    Join Date
    May 2007
    Posts
    840

  3. #3
    Alexxi is offline Junior Member
    Join Date
    Jan 2009
    Posts
    19

    Default Re: Hi!

    Thansk,however, that's not a solution, cause everybody can download my templates by simply typing for example: http://mysite.com/templates/header.tpl
    It would be the best if i could just simply change path to templates in a php or somewhere..

  4. #4
    bplex is offline Senior Member
    Join Date
    Sep 2008
    Posts
    1,022

    Default Re: Hi!

    Since the templates are not read directly, you can deny access to any .tpl file using .htaccess.
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

  5. #5
    Alexxi is offline Junior Member
    Join Date
    Jan 2009
    Posts
    19

    Default Re: Hi!

    thanks, also chmodding all templates 640 can solve the problem! And they only work if they have been already cached! Cause then noone will need the templates! So first wait 1 day or visit every page of your site, and then change the chmod to 640

  6. #6
    bplex is offline Senior Member
    Join Date
    Sep 2008
    Posts
    1,022

    Default Re: Hi!

    That's a bad way of doing that because if you change your template, it will never update without you redoing the permissions. The better way would be to deny direct access to the .tpl files.
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

  7. #7
    RAMMSTEIN is offline Senior Member
    Join Date
    Feb 2008
    Location
    Greece
    Posts
    242

    Default Re: Hi!

    Make a .htaccess file with this code and put it in your templates directory.

    Code:
    <files ~ "\.tpl$">
    order deny,allow
    allow from none
    deny from all
    </files>

  8. #8
    Alexxi is offline Junior Member
    Join Date
    Jan 2009
    Posts
    19

    Default Re: Hi!

    thanks it's wroking, great!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •