Results 1 to 9 of 9
-
25th Sep 2011, 07:47 AM #1OPMember
Help in Configuring .htacess
hi guys,
my old unused site is hacked , hacker accessed the root i think so(he changed the index page), also panel is directadmin.
but i not used the .htaccess , this may be the reason for hacking
That's old story.....
Now my site in another host, with cpanel.
How to configure .htaccess file(in cpanel), where to put .htaccess file and how to write permissions.....
please tell me in brief, i not even touched/used that file....
Thankstorrfriend Reviewed by torrfriend on . Help in Configuring .htacess hi guys, my old unused site is hacked :(, hacker accessed the root i think so(he changed the index page), also panel is directadmin. but i not used the .htaccess , this may be the reason for hacking That's old story..... Now my site in another host, with cpanel. :) How to configure .htaccess file(in cpanel), where to put .htaccess file and how to write permissions..... please tell me in brief, i not even touched/used that file....:( Rating: 5Skipp the Adfly Adfocus LinksBucks by one click(No Ads, No pop up's)
For << Kimsufi >> Truly Unmetered - No more 5Tb or 10Tb Limit
Wordpress Theme not working after editing footer copyright
-
25th Sep 2011, 04:09 PM #2Respected Member
In cpanel not whm there are options to password protect folders and setting up keys for ssh but nothing for .htaccess files. How did they hack your site? Might have been a hack to the server and they went through the hosts panel to hack your site.
-
25th Sep 2011, 05:07 PM #3Member
hey upload your htaccess file through ftp.
-
25th Sep 2011, 05:31 PM #4OPMemberIn cpanel not whm there are options to password protect folders and setting up keys for ssh but nothing for .htaccess files. How did they hack your site? Might have been a hack to the server and they went through the hosts panel to hack your site.
(so how to know my host is secure......?)
hey upload your htaccess file through ftp.Skipp the Adfly Adfocus LinksBucks by one click(No Ads, No pop up's)
For << Kimsufi >> Truly Unmetered - No more 5Tb or 10Tb Limit
Wordpress Theme not working after editing footer copyright
-
27th Sep 2011, 06:28 PM #5Member
put it in your site root
-
29th Sep 2011, 02:27 PM #6MemberWebsite's:
bigscoots.com
There are many different ways a hacker could of got in apart from it being your hosts fault.
.htaccess will affect every sub-directory after the directory you actually place it in. If you want your whole site to be affected by it then you would put it in your root web directory such as public_html or www in cPanel.
-
3rd Oct 2011, 04:17 PM #7OPMemberThere are many different ways a hacker could of got in apart from it being your hosts fault.Skipp the Adfly Adfocus LinksBucks by one click(No Ads, No pop up's)
For << Kimsufi >> Truly Unmetered - No more 5Tb or 10Tb Limit
Wordpress Theme not working after editing footer copyright
-
3rd Oct 2011, 04:45 PM #8MemberWebsite's:
bigscoots.comWhat did the hacker do exactly? Did he just embed code into your html? What CMS are you running if any. Did any of your directories/files need to be chmod'd?
-
5th Oct 2011, 04:44 PM #9Just Another Coder
Well to set up the .htaccess follow this. You don't actually need to create a .htaccess in cPanel because there is already one created. When you click File Manager in cPanel be sure to check Show Hidden Files on the pop-up that shows up. Now in the File Manager there is the .htaccess.
Edit it simply via the cPanel itself or download and re-upload via FTP once you are done editing.
To secure via .htaccess you can simply restrict access to a particular directory like admin folder, for example in Wordpress we have wp-admin folder. You can also deny any particular IP if you find suspicious via the .htaccess itself.
Examples for the same are below :
Code:order allow,deny deny from 123.45.6.7 deny from 012.34.5. allow from all
Code:<Files .htaccess> order allow,deny deny from all </Files>
Code:http://www.javascriptkit.com/howto/htaccess6.shtml
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Installing and configuring FFmpeg and FFpeg-Php
By Bharat in forum Technical and Security TutorialsReplies: 2Last Post: 3rd Jan 2012, 02:18 PM -
Help with .htacess URL Rewriting
By RT in forum Web Application/Script SupportReplies: 2Last Post: 20th Dec 2011, 06:12 AM -
Configuring Hidden Services
By roxorlol in forum Technical Help Desk SupportReplies: 5Last Post: 8th Dec 2011, 04:07 PM -
Configuring Virtualmin
By MilliR in forum Server ManagementReplies: 0Last Post: 16th Jan 2011, 01:11 AM -
Need help configuring RDP
By werewolf in forum Tutorials and GuidesReplies: 4Last Post: 15th Dec 2010, 10:01 PM
themaPoster - post to forums and...
Version 5.22 released. Open older version (or...