Jump to content

Recommended Posts

Posted

Hello everybody, I'm new here on the forum, this is my first participation.

I wonder if it is possible to change the default directory (lib/skins...) to something else that I can create? Example (myva/skins...).

Thank you.

  • Moderators
Posted

Hello everybody, I'm new here on the forum, this is my first participation.

I wonder if it is possible to change the default directory (lib/skins...) to something else that I can create? Example (myva/skins...).

Thank you.

I'm not sure why you would want to do that. You would have to change a few things to make it work. I wouldn't really do that. If you wanted to change your skin, you can add new skin in the skin folder and go to the admin panel, site settings and change the skin and save the settings.

Cheers!

Posted

I'd like to change the directory, because if someone access the link (mysite.com/lib/skins/crystal/ layout.tpl) it is possible to download it, maybe this would be a way to protect them.

Thanks for the reply.

Posted

This can be fixed through your .HTACCESS file on your server only if your running APACHE. Changing the core files can be done but will require many file changes.

Posted

Put this is on your .HTACCESS(Make sure is in your public_HTML directory)

<FilesMatch "\.(htaccess|htpasswd|tpl)$">
Order Allow,Deny
Deny from all
</FilesMatch>

Posted

I'm using a free server at the moment and it does not support this file type.

I'll be moving to another server (which is not free), and i will use this tip you gave me!

Thank you very much! :)

Posted

I can provide you with a domain and unlimited space for $14.00 with one mysql database but ill have to maintain your site if i design your site :) but that's just an option! Good Luck

Posted

There was a thread about a security issue with phpvms, I can't find it. Here is how you change your .hta file.

# prevent viewing of a specific file
RewriteEngine on
RewriteCond %{HTTP_HOST} ^YOURURL.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.YOURURL.com$
<FilesMatch "\.(htaccess|htpasswd|ini|phps|fla|psd|log|sh|tpl)$">
Order Allow,Deny
Deny from all
</FilesMatch>
#custom error docs if you have them
#ErrorDocument 404 /404.html
#ErrorDocument 403 /403.html
#disable hotlinking
RewriteEngine on
#disable some known attacks from agents also hotlinking
RewriteCond %{HTTP_USER_AGENT} libwww [NC,OR]
RewriteCond %{QUERY_STRING} ^(.*)=http [NC]
RewriteRule ^(.*)$ – [F,L]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?YOURURL.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?forum.phpvms.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?va-list.com/.*$ [NC]
RewriteRule \.(gif|png|jpg|js|css)$ - [F,NC]
#disable display of dir structure
Options -Indexes

Change the YOURURL to the url of your VA.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...