.htaccess security fix a hozzám hasonló lusta disznóknak

The spam filter installed on this site is currently unavailable. Per site policy, we are unable to accept new submissions until that problem is resolved. Please try resubmitting the form in a couple of minutes.
Kategória: 
Leírás

Elérkezett az idő, hogy sok-sok oldalunkat fel kell rugdalni a legújabb drupal verzióra. Így természetesen belefutottam az SA_2013_003 security release .htaccess átírós nyavajájába. Na most 30+ oldalnál csak nem kezdem el egyesével átírogatni a files mappa .htaccess-ét.

Ez a kis modul bekapcs, és már a helyén is lesz
https://bitbucket.org/gszanto/sa_2013_003/get/b227bbce6fee.zip

A private mappára nem próbáltam, elvileg ugyanígy kellene működnie.

Akinek meg van saját modulja ilyen célokra, egy dobjon egy hook_update_N()-t a modul install file-jába:

[geshifilter-drupal6]/** * Fix file directory .htaccess based on SA_2013_003. */ function MODULE_hook_update_7001() { module_load_include('install', 'system'); $req = system_requirements('runtime'); if (isset($req['public://.htaccess'])) { $htaccess_lines = file_htaccess_lines(FALSE); $ht_dir = file_stream_wrapper_uri_normalize('public://.htaccess'); drupal_chmod($ht_dir, 0777); // Write the .htaccess file. if (file_put_contents($ht_dir, $htaccess_lines)) { drupal_chmod($ht_dir, 0444); } } if (isset($req['temporary://.htaccess'])) { $htaccess_lines = file_htaccess_lines(FALSE); $ht_dir = file_stream_wrapper_uri_normalize('tmp://.htaccess'); drupal_chmod($ht_dir, 0777); if (file_put_contents($ht_dir, $htaccess_lines)) { drupal_chmod($ht_dir, 0444); } } if (isset($req['private://.htaccess'])) { $htaccess_lines = file_htaccess_lines(TRUE); $ht_dir = file_stream_wrapper_uri_normalize('private://.htaccess'); drupal_chmod($ht_dir, 0777); if (file_put_contents($ht_dir, $htaccess_lines)) { drupal_chmod($ht_dir, 0444); } } }[/geshifilter-drupal6]

Ja, és fontos: a file_htaccess_lines() a drupal 7.24-ben jelent csak meg, szóval abból ugyan baj nem lehet, ha régebbi verziójú drupalnal is előre kijavítjuk a .htaccess-t, ám az így nem fog menni.

Hozzászólások

That is a good tip especially

That is a good tip especially to those new to the
blogosphere. Simple but very precise information… Many thanks for
sharing this one. A must read article!

Hey There. I found your blog

Hey There. I found your blog using msn. This is a very well written article.
I'll make sure to bookmark it and come back to read more of your useful info.
Thanks for the post. I will definitely comeback.

Thanks for finally writing

Thanks for finally writing about >Válasz a hozzászólásra

It's awesome for me to have a

It's awesome for me to have a website, which is good in support of my experience. thanks admin|

Everything is very open with

Everything is very open with a really clear description of the issues.
It was truly informative. Your website is very helpful.
Thanks for sharing!

Its like you read my mind!

Its like you read my mind! You appear to know a lot about this, like you wrote
the book in it or something. I think that you
can do with some pics to drive the message home a bit, but instead of that, this is excellent blog.
An excellent read. I will certainly be back.

It's amazing to visit this

It's amazing to visit this site and reading the views of all friends on the topic of
this piece of writing, while I am also keen of getting familiarity.

It's awesome designed for me

It's awesome designed for me to have a web page, which is helpful for my
know-how. thanks admin

What's Going down i'm new to

What's Going down i'm new to this, I stumbled upon this I've found It absolutely useful and
it has helped me out loads. I am hoping to contribute &
assist different customers like its helped
me. Good job.

Having read this I thought it

Having read this I thought it was really enlightening.
I appreciate you finding the time and effort to put this content together.
I once again find myself spending a significant amount of
time both reading and commenting. But so what, it was still worthwhile!

I need to to thank you for

I need to to thank you for this excellent read!! I certainly enjoyed every little bit of it.
I have got you bookmarked to look at new things you post…

I simply could not depart

I simply could not depart your web site before suggesting that
I really enjoyed the usual information a person provide on your guests?
Is going to be again continuously in order to check up on new posts

Someone essentially help to

Someone essentially help to make seriously posts I
would state. That is the very first time I frequented your website page
and to this point? I amazed with the analysis you made to create this particular submit incredible.

Fantastic job!

Hey! Do you use Twitter? I'd

Hey! Do you use Twitter? I'd like to follow you if that would be okay.

I'm absolutely enjoying your blog and look forward to new posts.

Hey! I'm at work surfing

Hey! I'm at work surfing around your blog from my new apple iphone!

Just wanted to say I love reading your blog and look forward to all your posts!
Carry on the outstanding work!

Thank you a bunch for sharing

Thank you a bunch for sharing this with all folks you actually realize what you are speaking about!
Bookmarked. Kindly also consult with my site =). We will have a hyperlink change contract among us

Keep on writing, great job!

Keep on writing, great job!

I every time spent my half an

I every time spent my half an hour to read this blog's articles daily along
with a mug of coffee.

Wonderful website. Lots of

Wonderful website. Lots of useful info here. I am sending it to some buddies ans also sharing in delicious.
And of course, thanks for your effort!

I think the admin of this

I think the admin of this website is really working hard for his website, because here every stuff is quality
based data.

Wow! In the end I got a

Wow! In the end I got a webpage from where I be able to genuinely
get valuable facts concerning my study and knowledge.

There is certainly a great

There is certainly a great deal to know about this subject. I really like all of the points you've made.|

great points altogether, you

great points altogether, you simply gained a emblem new reader.
What would you suggest in regards to your post that you made a few days in the
past? Any sure?

It's an awesome piece of

It's an awesome piece of writing in favor of all the internet visitors;
they will take benefit from it I am sure.

Right away I am going to do

Right away I am going to do my breakfast, after having my breakfast coming over again to read additional news.

Great post. I was checking

Great post. I was checking constantly this blog and I am
impressed! Very useful information specifically the last part :) I care for such info a lot.
I was looking for this particular info for a very long time.
Thank you and good luck.

Fantastic beat ! I wish to

Fantastic beat ! I wish to apprentice even as you amend your site, how could i subscribe for a weblog site?
The account aided me a applicable deal. I have been tiny bit acquainted of this your
broadcast offered shiny transparent idea

Great post.

Great post.

This info is priceless. Where

This info is priceless. Where can I find out more?

Nice blog right here!

Nice blog right here! Additionally your site lots up very fast!

What host are you the use of? Can I get your associate link
on your host? I desire my site loaded up as quickly as yours lol

Hi to all, how is the whole

Hi to all, how is the whole thing, I think every one is getting more from this web
site, and your views are fastidious in favor of new viewers.

Very nice post. I just

Very nice post. I just stumbled upon your weblog and wished to say that I have truly enjoyed browsing your blog posts. In any case I'll be subscribing to your feed and I hope you write again very soon!|

My brother suggested I may

My brother suggested I may like this web site. He was once entirely right.
This put up truly made my day. You can not imagine simply how so much time
I had spent for this information! Thank you!

Normally I don't read post on

Normally I don't read post on blogs, but I would like to say that this write-up very pressured me to take a look at and do it!

Your writing taste has been surprised me. Thanks, very nice article.

I'm very happy to discover

I'm very happy to discover this page. I need to to thank you for your
time due to this fantastic read!! I definitely savored every little bit
of it and i also have you book-marked to check
out new information on your website.

This is my first time pay a

This is my first time pay a visit at here and i
am in fact impressed to read all at alone place.

Article writing is also a

Article writing is also a fun, if you know after that you can write otherwise it is difficult
to write.

Outstanding story there. What

Outstanding story there. What occurred after? Take care!

Heya just wanted to give you

Heya just wanted to give you a quick heads up and let you
know a few of the images aren't loading correctly.
I'm not sure why but I think its a linking issue. I've tried
it in two different browsers and both show the same outcome.

This text is invaluable.

This text is invaluable. Where can I find out more?

Asking questions are

Asking questions are genuinely good thing if you are not understanding anything completely, except
this article presents nice understanding yet.

Hello, of course this article

Hello, of course this article is in fact fastidious and I have learned lot of
things from it about blogging. thanks.

Heya i am for the primary

Heya i am for the primary time here. I came across this board and I to find It truly useful & it helped me out a lot. I'm hoping to give something again and aid others like you helped me.|

My brother suggested I might

My brother suggested I might like this website.
He was totally right. This post truly made my day.
You can not believe simply how a lot time I had spent for this info!
Thanks!

Thanks for sharing your

Thanks for sharing your thoughts on ig. Regards

Hello to every one, since I

Hello to every one, since I am in fact keen of reading this webpage's post
to be updated daily. It consists of pleasant material.

whoah this blog is fantastic

whoah this blog is fantastic i really like studying your posts.
Stay up the great work! You already know, many individuals are hunting round
for this information, you can aid them greatly.

We're a gaggle of volunteers

We're a gaggle of volunteers and starting a brand new scheme in our community.

Your website offered us with helpful info to work on. You have done
an impressive job and our whole community will be thankful to
you.

Hi, Neat post. There's an

Hi, Neat post. There's an issue with your web site
in web explorer, could check this? IE nonetheless is the marketplace chief and
a good part of other folks will leave out your excellent writing because of
this problem.

Just wish to say your article

Just wish to say your article is as astonishing. The clarity in your
post is just nice and i could assume you are an expert on this
subject. Fine with your permission let me to grab your RSS feed to keep up to date with forthcoming post.
Thanks a million and please continue the enjoyable work.

Hozzászólás

A mező tartalma nem nyilvános.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Engedélyezett HTML elemek: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <del> <img>
  • A webcímek és email címek automatikusan linkekké alakulnak.
  • A sorokat és bekezdéseket a rendszer automatikusan felismeri.
  • Engedélyezett HTML elemek: <a> <blockquote> <br> <cite> <code> <dd> <del> <div> <dl> <dt> <em> <li> <ol> <p> <span> <strong> <ul>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <mysql>, <php>, <python>, <ruby>, <sql>. The supported tag styles are: <foo>, [foo].
  • Minden email cím át lesz alakítva ember által olvasható módon, vagy (ha a JavaScript engedélyezett) ki lesz cserélve kattintható, de biztonságos hivatkozásra.