[HH] best way to give files on web?

David Kramer david at thekramers.net
Thu May 3 23:59:46 EDT 2012


On 05/03/2012 03:27 PM, Greg London wrote:
> Grr,
> 
> So, I just got a bot email from my webhost company that
> one of my websites is infected with some kind of malicious code.
> 
> I've been meaning to centralize all my URL's and websites
> under a single host, and now that stuff is broken, it might
> be a good time to do it.
> 
> Digging around a little bit, HostGator seems to get good reviews
> and has everything I need.

I use HostGator heavily, and they're incredible.  They have awesome 24
hour chat-based support that's actually helpful, unlimited everything,
and one-click install of a bunch of software.  I have a referral code if
you chose to go with them and are willing to use it, but that's not why
I recommend them.

> So, if I move everything over to one host company and recreate
> some of my websites, what would be the best way to put code on
> my web for folks to use?
> 
> I have random bits and bobs over on telosi.com.
> For example, here's an ARM assembler macro I wrote
> that lets you move data around from anywhere to anywhere
> with just a single macro and a consistent format:
> 
> http://www.telosi.com/index.php?title=Tcopy_macro_arm_keil
> 
> There's some verilog over there too.
> Might put some perl up as well.
> 
> Syntax highlighting would be nice.
> 
> I had it set up on a wiki, but the wiki somehow got infected
> with malicioius code. My current host shut down the pages that
> were infected, so if you browse around there are probably  a
> couple links that wont go anywhere.
> 
> Getting syntax higlighting set up on the wiki was a pain
> and I wouldn't be surprised if something I did to put in
> code highlighting broke security and allowed me to get
> infected.  I'm not much of a web programmer.

If you want syntax highlighting, you're going to be hard-pressed to come
up with a solution that's better than a wiki.

One of the reasons wikis get a bad name IMO is that many of them are
designed from the ground up to be completely open, and it's very hard to
add any restrictions to them.  For instance, I work on one wiki based on
MediaWiki, and it's hacked regularly, and there's very little I can do
about it and still let the people I need to edit it, edit it.

My favorite wiki right now is Foswiki (http://www.foswiki.org).  I'm
using it on four different projects, including my own server, in no
small part because it has a powerful, flexible, security model.  it also
has many plugins.  One of these may help you out with your syntax
highlighting:
 http://foswiki.org/Extensions/DpSyntaxHighlighterPlugin
 http://foswiki.org/Extensions/SyntaxHighlightingPlugin
They also have a very active IRC channel for support.

> I did a "one click install" for the wiki and then had to
> install some stuff to make it do syntax highlighting.
> Anyone suggest a better way to host various bits of code,
> schematics, and whatnot? Something a non-web weenie can
> set up,and something easy enough to maintain the security
> for that I don't get swamped with spam or infected with
> malicious code.

Beyond the authorization control, foswiki has several plugins for
catching spam, enforcing blacklists, etc.

Foswiki makes maintaining permissions easy because it's based on
UNIX-style users and groups, so you get the group working the way you
want then just drop new people into them.  In contrast, my last favorite
wiki was PHPWiki, which had no users, and individual subwikis and pages
had passwords, and that made maintaining permissions very hard, and
tracking who changed what even harder.




More information about the Hardwarehacking mailing list