![]() ![]() |
Jul 5 2011, 01:09 PM
Post
#1
|
|
![]() Web Design Seo ![]() ![]() ![]() ![]() Group: Root Admin Posts: 4,332 Joined: 29-April 09 From: Sofia Member No.: 1 |
Copy-paste this code and insert at top in your htaccess: Код RewriteEngine On RewriteBase / RewriteCond %{QUERY_STRING} ^.*=(ht)|(f)+(tp)+(://|s://)+.*(\?\?)+ RewriteRule .* http://your-trap.com/php-trap-script.php [R,L] When some bad hacker will try to attack web site with Remote file inclusion attack, bot or hacker will be redirected to url: Код http://your-trap.com/php-trap-script.php If you dont have such a php script, redirect to google or some other unreal url address in this way: Код RewriteEngine On RewriteBase / RewriteCond %{QUERY_STRING} ^.*=(ht)|(f)+(tp)+(://|s://)+.*(\?\?)+ RewriteRule .* http://gggooooooglleee.com/ [R,L] If you already have these lines in htacces: Код RewriteEngine On RewriteBase / dont copy them twice, use only other two lines for Remote File Inclusion Protection. -------------------- Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
|
|
|
|
Jan 7 2013, 07:35 PM
Post
#2
|
|
|
Newbie ![]() Group: Members Posts: 3 Joined: 7-January 13 Member No.: 1,505 |
My Joomla 1.5.26 site was recently hacked by Hmei7.
I followed instructions on http://www.joshpate.com/2013/01/how-to-fix...oomla-web-site/ to get the site up and running again. It was pretty straight forward and I assume that it could have been a lot worse than it was. I was quick to act so I only got about 3 hours downtime. Though judging by the mails I got I did lose a few customers on those hours. Now I ended up on this forum to read a bit more on the exploit used in this attack in order to try to fix it. I found two suggestions for Joomla 1.5 The decision to not hack joomla 1.5: 1. Lock folder administrator. With password or by IP address. 2. Add to your htaccess file defense against RFI - Remote File Inclusion protection. I am curious about how to lock folder administrator with password or by IP address. This sounds like a good security measure, but I don't know how to do it. Defense against RFI Now I did implement these two lines in my .htaccess file Код RewriteCond %{QUERY_STRING} ^.*=(ht)|(f)+(tp)+(://|s://)+.*(\?\?)+ RewriteRule .* http://gggooooooglleee.com/ [R,L] The Код RewriteEngine On RewriteBase / was already included in my .htaccess file. All four lines are not neatly in a row after eachother, but as long as they're all in there and not commented out I guess that it should work? Now that leads to my main question. How can I know that it works? I was thinking about using the Код RewriteRule .* http://your-trap.com/php-trap-script.php [R,L] But I am not sure how this works? Can I just use that your-trap.com/php-trap-script.php? Or do I need a trap script on my site and redirect them to that? If, then where can I get that script? Thank you for the useful info thus far and I hope that you can help me with the questions above, Your help would be much appreciated. Thank you. |
|
|
|
Jan 8 2013, 07:19 AM
Post
#3
|
|
![]() Web Design Seo ![]() ![]() ![]() ![]() Group: Root Admin Posts: 4,332 Joined: 29-April 09 From: Sofia Member No.: 1 |
If you don't know how to make bot trap with php, just redirect hacker to google or to other url.
-------------------- Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
|
|
|
|
Jan 8 2013, 11:34 AM
Post
#4
|
|
|
Newbie ![]() Group: Members Posts: 3 Joined: 7-January 13 Member No.: 1,505 |
If you don't know how to make bot trap with php, just redirect hacker to google or to other url. Then I'll just do that. There is no official bot trap url that you know of that could be used? Again, how do I go about to lock the folder administrator with password or by IP address? Is this something I should be asking my webhost about? |
|
|
|
Jan 8 2013, 11:35 AM
Post
#5
|
|
|
Newbie ![]() Group: Members Posts: 3 Joined: 7-January 13 Member No.: 1,505 |
If you don't know how to make bot trap with php, just redirect hacker to google or to other url. Then I'll just do that. There is no official bot trap url that you know of that could be used? Again, how do I go about to lock the folder administrator with password or by IP address? Is this something I should be asking my webhost about? |
|
|
|
Jan 8 2013, 11:47 AM
Post
#6
|
|
![]() Web Design Seo ![]() ![]() ![]() ![]() Group: Root Admin Posts: 4,332 Joined: 29-April 09 From: Sofia Member No.: 1 |
Цитат Again, how do I go about to lock the folder administrator with password or by IP address? Is this something I should be asking my webhost about? by IP address: from htaccess: Код deny from all allow from ... post here your ip with password: from cpanel. -------------------- Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
|
|
|
|
![]() ![]() |
Similar Topics
| Topic | Replies | Topic Starter | Views | Last Action | |
|---|---|---|---|---|---|
![]() |
Pinned: Htaccess Rules For Google Pagespeed Insights In 2021 The best rules for Htaccess for Apache servers |
1 | Web Design Seo | 300,512 | 18th March 2021 - 02:07 PM Last post by: Web Design Seo |
![]() |
Pinned: Htaccess Code To Speed Up Joomla example code for Htaccess for Joomla, Wordpress and other CMS |
8 | Web Design Seo | 61,741 | 17th February 2021 - 11:43 AM Last post by: Web Design Seo |
![]() |
Htaccess Code To Switch To Other Php Version Htaccess Code To Switch To php 5.6 |
1 | Web Design Seo | 39,341 | 17th August 2020 - 08:58 AM Last post by: Web Design Seo |
![]() |
Format Lost In Post By E-mail | 3 | gibor | 164,258 | 9th January 2014 - 07:00 AM Last post by: Web Design Seo |
![]() |
Files To Update Joomla 1.7 To Joomla 2.5 Joomla 1.7 to Joomla 2.5 upgrade: the missing files |
1 | Web Design Seo | 30,741 | 11th October 2013 - 10:11 AM Last post by: Web Design Seo |
|
Lo-Fi Version | Time is now: 1st June 2026 - 09:40 PM |