Okey, New Tutorial, Hmmm, Everyone Talking about SE Templates Protection but Dont know Anyone can Steal Your Template bypassing HTAccess Method, Look this Tutorial and Decide which method is Better by using Your Brain
Summary - This Tutorial is Moving Every TPL file to a Secret Folder which is Un-Browsable (Cannot Steal). Also, Keeping all CSS Files in existing "templates" Directory and using HTAccess on it. Understand ? Good
Important - Please Note, If You Installing Plugins after this Protection, Create New Directory with the Code Name You Going to Use in this Tutorial. Move all TPL files in "templates" Directory to newly Created Secrat Directory in that Plugin. That's it. Remember to Keep all CSS files in default "templates" Directory. Okey Now You can Upload it
Step 1 - Download your "templates" Directory via FTP using FileZilla
Step 2 - Create a New Directory in Desktop and Rename with a Secret Code. (Example - 57dgg663gs46). and Memorize It !!!
Step 3 - Move all TPL Files to that Directory. Keep CSS Files default templates Directory. Dont do anything to them.
Step 4 - Delete Your "templates" Directory in your Web Site via FTP
Step 5 - Now Upload those Two Directories (templates directory and Secrat Code named Directory). Your Directories must like this. "templates" Directory must contains CSS files ONLY !!. Secret Code named Directory must contains TPL Files ONLY !!!
Step 6 - Now open "include/class_smarty.php" and Find this
PHP:
function SESmarty() { $this->template_dir = SE_ROOT.DIRECTORY_SEPARATOR.'templates';
Step 7 - Replace "templates" with your Secret Code. (Example Below)
PHP:
function SESmarty() { $this->template_dir = SE_ROOT.DIRECTORY_SEPARATOR.'57dgg663gs46';
Step 8 - Open "admin/admin_templates.php" and Find this
PHP:
// VALIDATE FILENAME
$path = "../templates/$filename";
Step 9 - Replace "templates" with your Secret Code. (Example Below)
PHP:
// VALIDATE FILENAME
$path = "../57dgg663gs46/$filename";
Step 10 - Find this in Same File
PHP:
if($handle = opendir('../templates')) {
Step 11 - Replace "templates" with your Secret Code. (Example Below)
PHP:
if($handle = opendir('../57dgg663gs46')) {
Step 12 - Empty your "include/smarty/templates_c" Directory
Step 13 - There is no way to Protect CSS file, So you can Use HTAccess to it. Open New Notepad Window and Paste this
PHP:
<files ~ ".css$"> order deny,allow allow from none deny from all </files>
Step 14 - Save it as ".htaccess" and Upload to "templates" Directory
Step 15 - You are Done. Browse Your Web site and Try to Download Templates files from templates Directory if you Can