BIG problem Web Hosting

  • filip
  • Born
  • Born
  • filip
  • Posts: 1

Post 3+ Months Ago

Using local "free hosting" I have a BIG problem..
After publishing my web site, site its running ok. Till same strange file
Suddenly appeared in my root folder. “htxpanel” when everything starts to
Go funny, if I remove file in “Junk folder” everything is back to normal.

I design site using Microsoft web publisher, FTP its FileZilla and my site
Have free ads from Hosting provider.
(I am not same computer expert , and any help is welcome ,
File: htxpanel edited:
- SetEnv C category1

Code: [ Select ]
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)\.[html][htm] http://www.nfilip.com [R,L]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?www.nfilip.com(/)?.*$
RewriteRule .*\.(gif|GIF|jpg|JPG|mpg|MPG|mpeg|MPEG|wmv|WMV|rm|RM|bmp|BMP|png|PNG|avi|AVI|zip|ZIP|RAR|rar|mp3|MP3|mp2|MP2|lit|LIT|flv|FLV|dat|DAT|pdf|PDF|doc|DOC|ppt|PPT|wav|WAV|wma|WMA|mid|MID)$ http://www.freetzi.com/images/no.gif [R,L]
RewriteRule .*\.([Cc][Gg][Ii]$|.*[Pp][Ll]$|.*[Aa][Ss][Pp]$|.*[Ff][Cc][Gg][Ii]$|.*[Ss][Hh]$|.*[Ee][Xx][Ee]$|.*[Ss][Cc][Rr])$ http://www.freetzi.com/ext.html [R,L]
  1. RewriteEngine on
  2. RewriteCond %{REQUEST_FILENAME} !-f
  3. RewriteRule ^(.*)\.[html][htm] http://www.nfilip.com [R,L]
  4. RewriteCond %{HTTP_REFERER} !^http://(www\.)?www.nfilip.com(/)?.*$
  5. RewriteRule .*\.(gif|GIF|jpg|JPG|mpg|MPG|mpeg|MPEG|wmv|WMV|rm|RM|bmp|BMP|png|PNG|avi|AVI|zip|ZIP|RAR|rar|mp3|MP3|mp2|MP2|lit|LIT|flv|FLV|dat|DAT|pdf|PDF|doc|DOC|ppt|PPT|wav|WAV|wma|WMA|mid|MID)$ http://www.freetzi.com/images/no.gif [R,L]
  6. RewriteRule .*\.([Cc][Gg][Ii]$|.*[Pp][Ll]$|.*[Aa][Ss][Pp]$|.*[Ff][Cc][Gg][Ii]$|.*[Ss][Hh]$|.*[Ee][Xx][Ee]$|.*[Ss][Cc][Rr])$ http://www.freetzi.com/ext.html [R,L]
  • suzie
  • Guru
  • Guru
  • User avatar
  • Posts: 1134
  • Loc: England

Post 3+ Months Ago

Hi,

I am no comp geek either but it looks like an htaccess file - > Apache? Anyway this will put the post as answered and someone geekie will see it and respond with the correct imformation and help.

Good luck!
S :mrgreen:
  • trevHCS
  • Novice
  • Novice
  • trevHCS
  • Posts: 34
  • Loc: NW England, UK

Post 3+ Months Ago

It's somekindof of mod_rewrite command set which from what I can tell is initially trying to block other sites from linking to your images, ie: "hotlinking". The way they've done it however is a little odd.

The second bit I think is trying to block you from running certain file types. For example "*\.([Cc][Gg][Ii]$" basically means you can't run files with the extension .cgi or .CGI or any combination thereof. The others are similar, like .pl, .asp etc. If you try to run those it'll redirect to the http://www.freetzi.com/ext.html file.

The fact that they've done that in the directory is a bit stupid to be honest as you can just remove the file and hey presto, run whatever you like. If they don't want you to run Perl, CGI or ASP then they should simply not install them. They should be able to block this stuff from running from a central file anyway.

Doesn't exactly give me a lot of faith in their abilities I must admit.

Trev
  • suzie
  • Guru
  • Guru
  • User avatar
  • Posts: 1134
  • Loc: England

Post 3+ Months Ago

Blimey Trev,

Quote:
"*\.([Cc][Gg][Ii]$" basically means you can't run files with the extension .cgi or .CGI or any combination thereof.


How did you manage to 'decipher' that lololol



:mrgreen: :mrgreen:
  • trevHCS
  • Novice
  • Novice
  • trevHCS
  • Posts: 34
  • Loc: NW England, UK

Post 3+ Months Ago

Took me a little while as I was thinking they were control codes initially, until I clicked onto the sequence. When you've done regular expressions as often as I have, they tend to become easier to break down. mod_rewrite uses pretty much a POSIX compatible format which also makes things simpler.

.*\.

- Find anything then a dot, ie: in this case a filename. Since a dot is a special char, then we have to escape it so the computer knows to look for a dot specifically.


[Cc][Gg][Ii]

- Match anything between the []'s. In this case we match C or c, G or g then I or i characters. Since there's no quantity qualifier we only look for each character once before moving to the next character.


$|

- The $ means end of sequence to look for.
- The | means "OR" go look for these combinations instead.

...then it just repeats this process until it finds a match, or runs out of things to look for.

You just gotta think like a computer which in theory I shouldn't be able to do as I'm useless at maths, but suspected to have Aspergers so that helps.

Oh and also helps if you come from a Perl background originally as it used reg_ex much more frequently than PHP. Also makes the scripts ruddy complicated to read sometimes. All our really big sites run off extensive mod_rewrite so it helps to know something about it....makes up for not knowing enough about PHP. :)

Trev

PS: It's also useful for making people think you're very good at this stuff, as they look at some nice bit of complicated reg_ex like email verification and then think you're a genius. Not that I ever use this to my advantage... ;)
  • suzie
  • Guru
  • Guru
  • User avatar
  • Posts: 1134
  • Loc: England

Post 3+ Months Ago

Quote:
PS: It's also useful for making people think you're very good at this stuff,


But you are!

I was just reading about Aspergers which is named after Austrian pediatrician Hans Asperger. Hey Trev, he discribed his *patiens as little professors.


:mrgreen:

Thanks for all the explanations, and yes. PHP is rather naff..hahahahahha

:mrgreen:
  • trevHCS
  • Novice
  • Novice
  • trevHCS
  • Posts: 34
  • Loc: NW England, UK

Post 3+ Months Ago

Little professors - wrapped in their own little world, very analytical to the n'th degree and useless at maths...and of course make absolutely no sense to anyone else outside the AS world. Yeah, I can see where he's coming from.

Maybe they should add - can decipher reg_ex to the list of symptoms.

As for PHP - they'll stick you in the tower of London for saying things like that! ;)

Trev
  • suzie
  • Guru
  • Guru
  • User avatar
  • Posts: 1134
  • Loc: England

Post 3+ Months Ago

Hmm..
Quote:
Little professors - wrapped in their own little world.


Thats what they do though is'nt it part of the condition. Ok, useless at maths..good heavens above Trev..I am useless at maths which is why I said 'how did you? iTS WHY I hate php. I missed a great deal of schooling and College was'nt an option then.So I remain 'tick at maths'...:mrgreen:

When nature fails to give you something she doubles the good bits, I am not the smartie on the block but I have the caring heart and I know what I would rather have.
Children with problems with maths can excell at other things given just a half a chance.

Look at you and that mod_rewrite. Hans Asperger would have fallen off his chair at seeing your explanation..ahahahaha

...:mrgreen:
  • trevHCS
  • Novice
  • Novice
  • trevHCS
  • Posts: 34
  • Loc: NW England, UK

Post 3+ Months Ago

See PM for reply as it's quite long... :)

Trev
  • suzie
  • Guru
  • Guru
  • User avatar
  • Posts: 1134
  • Loc: England

Post 3+ Months Ago

lolol seen it

Thanks will reply in full later today so a mini sent meantime.

:mrgreen:
  • Tonzilit
  • Student
  • Student
  • User avatar
  • Posts: 69

Post 3+ Months Ago

How does all go on now?

Post Information

  • Total Posts in this topic: 11 posts
  • Users browsing this forum: No registered users and 4 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.