Was my htaccess hacked? [closed] - .htaccess

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I found these following lines in my .htaccess file.. I've replaced my website name with example.com. I didn't add this to my .htaccess file...
AuthName "example.com"
AuthUserFile "/home3/examplec1/.htpasswds/public_html/example.com/passwd"
What is this and why was it added to my .htaccess file? Is it possible someone has downloaded the public_html file?
If i did get hacked, how do i prevent from getting hacked again?
I did try to protect a folder(can't remember which one) previously in cpanel, would this alter my .htaccess?

This probably was added by your hosting provider or by someone who also has access to your environment. Adding a protection cannot seriously harm you. Removing or changing a protection would be worse.

Related

godaddy webhosting root directory [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 5 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
im using go-daddy to learn web hosting ...
so i had problem and i reset my account because i thought something change some settings in the server..
after i reset the account i still have the same problem that my web root DIR is in (ht-docs owned by root) which i cant edit ...
this is the effective root directory .. i dont know why its not (public_html)
i ve allready asked in godaddy before about this and figured out my self the root directory by searching html code in all files in my server
(grep -isr "html code" /*)
https://uk.godaddy.com/community/Managing-Web-Hosting/public-html/td-p/51705
note: im newbie in linux .. i've just purchased godaddy account to learn web hosting ..
Why do you want to edit stuf in the default htdocs dir while the document root is set to /public_html/www in your user dir, according to the control panel screenshot you provided?
Look for public_html/www in your user dir, it should be ~/public_html/www, which is a shortcut to /home/YOUR_USER/public_html/www
PS: be careful asyour last screenshot shows /home/YOUR_USER/public_html as the document root, while the control panel one as www on top of it (but it might just be to handle subdomains)

X-FRAME ALLOW-FROM https://www.example.com [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
When I add this line
X-FRAME ALLOW-FROM https://www.example.com
in the config files of apache2.conf in my ubuntu 14.04 server. It fails to start my apache. Can any one tell the exact line that can be added to allow X-FRAME from only one url.
Maybe you mean:
Header set X-FRAME-OPTIONS "ALLOW-FROM https://www.example.com"
But honestly you're so far off from correct syntax it's really unclear what your intent was. You'll need mod_headers loaded.

Is www a subdomain? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 7 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I recently purchased something.com.
When I visit something.com from my browser, I get the index page I uploaded on server.
However, if I visit www.something.com, it shows Error 404.
So I create a sub-domain named 'www' and upload another index file there.
Now, www.something.com and something.com shows two different websites.
My question is, is 'www' a normal sub-domain? Or some special kind of sub-domain? If yes, how is it different from other sub-domains?
is 'www' a normal sub-domain? Yes, it is. From the point of view of DNSs it is a totally normal subdomain.
is some special kind of sub-domain? Yes, it is, indeed. It is so commonly used that most Registrars and Hosting providers do automatically create it for you and permanently redirect it to the web server hosted with them.
in your case, it seems that this is not what happens. So, create it and permanently redirect it, instead of creating a new index page for it.

Apache2 webserver not displaying pages [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have this strange problem that happens whenever I go to visit any of my websites hosted on my Apache2 server. When I visit a site, chrome just downloads this file named 'download' and just displays a blank page. I opened the the file named 'download' in notepad++ and it displays the html source code to the website. Anyone know what is going on here?
You misconfigured your server: it's returning the wrong mime-type. Go find the config which came with your Apache installation and compare it with the current state to find the stuff which is broken.

Authentication required for the folder [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I'm trying to access a folder in Linux Apache server and it's coming up with Authenticatio Required prompt.
How do I reset or find this login details in Cent OS VPS server?
Is this made through htpasswd and if so, what is the name of the file created and where can I look this up?
Have a look in the Apache configuration files, located possibly in /etc/httpd/ folder and look for a block of lines like these (probably in a VirtualHost block):
AuthType Basic
AuthName "Protected Files"
AuthUserFile /etc/httpd/passwd/passwords
Require user joe
Then the AuthUserFile line will tell you where is the file you need to edit to add/remove/update the user through the htpasswd command, i.e. to update 'joe' password
htpasswd /etc/httpd/passwd/passwords joe

Resources