Help - Search - Members - Calendar
Full Version: HTML Protect MT Pages?
Movable Type Community Forum > Additional Resources > Tips and Tricks
DcK
I'm protecting my site with a little program called HTML Protector. It prevents right clicking, page editing, encrpts source code, image theft, print screen function, literally everything I'd want.

So, here's my question, IF I use this protector on the index files w/in MT, will this crash my blog? I was going to just try it, but my blog's finally working and I don't want it to crash.

What's the best way to try it?
What are all the files I'll need to protect (other than the index.htm files of course)?

Thanks!!
notforsheep
why not simply modify .htaccess to protect the relevant files? Seems a lot easier and safer than using executable content...

http://www.javascriptkit.com/howto/htaccess.shtml
DcK
I've been playing around w/.htaccess, and I keep getting errors on it. I've CMOD the file, followed the code tutorials, could be some servor issues, could be my newbie coding.

Anyway, the .htaccess is limited, compared to what the program can do, and I've just about given up on the .htaccess anyway.

Think it'll work?

I guess I can try it, and if it doesn't work, just upload the old one back into MT ?

Anyone want to email me a working .htaccess file, I'll insert my domain and see if it's me or the servor?
notforsheep
Hope this helps--Here's a copy of my .htaccess file. Be sure to swap out the domains--

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://yourdomain.net.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourdomain.net.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourdomain.net.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourdomain.net.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourdomain.net.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourdomain.net.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourdomain.net.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourdomain.net.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ http://yourdomain.net/forbidden.html [R,NC]


order allow,deny
deny from all


ErrorDocument 404
http://yourdomain.net/missing.html
ErrorDocument 403
http://yourdomain.net/forbidden.html
ErrorDocument 500 http://yourdomain.net/internal_error.html

order allow,deny
deny from 192.231.124.0
deny from 192.231.124.
allow from all
DcK
QUOTE
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://.*.mydomain.com/.*$ [NC]
RewriteRule \.(gif|jpg|png)$ - [F]


order allow,deny
deny from all



Okay, I got this .htaccess code to work. My servor will only take the code if I insert that Options line shown above.

But, does this code accomplish the same thing as notforsheep's long repeating code, with exception of the the error documents of course??

PS) The HTML protector program does NOT work on MT, I tried it and it doesn't work.
femme9wine
notforsheep,

I'm curious, what exactly does the .htaccess file do? I know what it does essentially, but I mean your coded one in general?

I'm thinking about adding more security to my website...

Thanks in advance.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.