What reason do you have for this? Security through obfuscation isn't a
good strategy, especially with something as intrinsically open as
HTML. If your site can be hacked just by being able to view the HTML
then you have bigger problems to worry about than obfuscating it.

On Mon, May 25, 2009 at 4:36 AM, Andy Mikhailenko <neith...@gmail.com> wrote:
>
> Built-in template tag {% spaceless %) can do a part of work for you
> (namely, remove the extra whitespace), but to actually obfuscate the
> code you should either use middleware or make extensive use of
> JavaScript (e.g. open GMail and try to read the source). However, the
> idea in general sounds strange: most (or some) browsers let the user
> view even JS-generated HTML, nicely formatted and perfectly
> inspectable. David is right, this is probably not what you need. I
> hate to mention Flash but it can be an option.
>
> On May 25, 7:40 am, jago <java.j...@gmail.com> wrote:
>> Hi,
>>
>> I want to make the HTML of the website as little human readable as
>> possible. For that I would like to add some layer to Django 0.96 which
>> when writing out the page takes the HTML and adds some processing.
>>
>> 1. How would I obfuscate the HTML as much as possible (remove all line
>> breaks, etc.)
>> 2. How would I best add the layer which does this obfuscation
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to