Jhony300 Posted July 21, 2012 Report Posted July 21, 2012 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. Quote
Moderators Kyle Posted July 21, 2012 Moderators Report Posted July 21, 2012 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! Quote
Jhony300 Posted July 21, 2012 Author Report Posted July 21, 2012 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. Quote
vader21 Posted July 21, 2012 Report Posted July 21, 2012 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. Quote
Jhony300 Posted July 21, 2012 Author Report Posted July 21, 2012 Thank vader21, I'll try the way you spoke, because for changing the default directory seems to be more complicated. Quote
vader21 Posted July 21, 2012 Report Posted July 21, 2012 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> Quote
Jhony300 Posted July 21, 2012 Author Report Posted July 21, 2012 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! Quote
vader21 Posted July 21, 2012 Report Posted July 21, 2012 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 Quote
RogerB Posted July 21, 2012 Report Posted July 21, 2012 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. Quote
Jhony300 Posted July 21, 2012 Author Report Posted July 21, 2012 I've changed my server, and used the tips you guys gave me Now yes my files are safe. Thank you all for help! Best Regards! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.