How can I get all urls of the site? [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
How can I get all urls of the site by any programming language or software?
For example, I have site http://getmoneygettraffic.com/ and I know there are some other pages like http://getmoneygettraffic.com/48h
How can I find links for the other pages? If I know only domain - http://getmoneygettraffic.com/
UPDATE: (It's my site) Can I get all urls of the site without rake(ROR) or going to ftp or cPanel ?
I have tried this stackoverflow.com/questions/857653/… and this one stackoverflow.com/questions/131989/… and this too stackoverflow.com/questions/16619687/
Also, I have tried -> https://code.google.com/p/knock/ , cool stuff, but it's looking only for subdomains if I'm not mistaken. I need right part of the url, not the left.

The general answer is you can't do it if the website uses URL Rewriting which rules you don't have. If the website is yours and doesn't use complex rewriting you could try browsing the root directory to retrieve ".php" files.

Since you have tagged this with ruby on rails, if you own this website/ have access to server, you can do rake routes in the root of your application and get the whole list of routes that are available for it.
Otherwise, I am not so sure that you would be able to get an exhaustive list unless you have access to the application code

You can use Sitemap option to get all the urls

Related

Drupal website hacked, but cannot find source? [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
I got mail from Google Webmaster tools that strange URLs where indexed. URLs like mywebsite.com/cheap-medicine/, etc.
I have a Drupal website and I can see those URLs are indexed. And using proxy I can see the page myself. However, I cannot find the source.
I have looked into a bunch of files but they are unchanged.
Also I searched my entire database and of course looked into Drupal backend for strange content.
I even searched my entire server using Linux grep, also no result for words on the page. The database URL / routing tables also show no strange URLs.
I did of course also check .htaccess files
How are these URLs accessible if I cannot find them anywhere?
Look into your .htaccess file, it contains a lot of power. It can make these strange URIs mask themselves. Try to check the validity of that file. This might be where this is coming from.
If your .htaccess file, or any .htaccess file inside any subdirectory of the site weren't hacked on then you probably want to reinstall the Drupal core. If you followed proper development practice by never editing third party core files, then you will not lose any work or time, because it will be a fresh default copy of what you installed the first time.
After this, make sure core runs correctly in a default state, and that the problem is gone. Then you can copy back in your source files to your Drupal framework and reconfigure and resume.
If the problem comes back after you put your source files back, then the problem is in your sources.
You can also try grepping for the terms individually i.e. grep -rin "medicine" ./* on a GNU/Linux box to see if these terms show up.

How to copy directory from a public http url to my Server [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 some files in directory and sub directory in an open HTTP site
For Example:
http://example.com/directory/file1
http://example.com/directory/file2
http://example.com/directory/sub-directory/file1
http://example.com/directory/sub-directory/file2
http://example.com/directory/sub-directory2/file1
http://example.com/directory/sub-directory2/file2
I want to copy the full directory to my server.
I don't have SSH or FTP access to the http://example.com
I have tried transloader script which grabs only one file every time.
I need to copy the full directory exactly as is on the HTTP server to my new server.
Thanks
Use wget or curl:
wget -r --no-parent mysite.com
You are unable to do this. You can grab the content of the visual layer/GUI that the site provides to you, but you can not grab any of the "behind the scenes" pages which the site has. You wont be able to get any of the site which is doing the back end processing to create what you see on the front end.
The only way to do do this is if you have access to the directories on the site. By this, I mean when you go to the base directory, such as example.com/test/, it just gives a list of all possible files in that directory. As it stands though, most sites protect against it, therefore unless you have direct access, this is not doable as it would be entirely insecure and would create many headaches for development and privacy.

.htaccess domain.com rewrite based on $_SERVER['SERVER_NAME']; [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 have never touched a .htaccess file. Can someone help me with the code I would need to replace a domain name with another domain name.
I have 10 domains pointed at the same directory as domain.com. When someone arrive via any of the 10 urls, I want them to see that URL through the entire visit on the site. So I need to do a rewrite that says to take domain.com and change it to $_SERVER['SERVER_NAME']. This variable holds the url a person typed to get to my site.
Please assist me, mod rewriting seems significantly more difficult then I would have imagined.
You can just write some code in your index file to redirect to new domain

How to get set up for learning PHP? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have downloaded WAMP to try to learn PHP on, and am having trouble getting it to work as expected whenever trying to follow along in PHP tutorials.
Either what I get back in my browser is raw PHP (as shown below in "PHP Test 1"), or nothing at all (as shown below in "PHP Test 2"). I'm just trying to learn the basics of PHP, and am finding this to be very frustrating. Can anyone help? What do I need to do get PHP working, or what should I try?
Originally I was going to post screen shots to better describe the problem I'm having, as well as to better help others who are experiencing the same problem, but was not allowed to due to something about not having enough "points". Anyway, what I was originally trying to post can be found here:
https://sites.google.com/site/bluedog4678/
You need to start WAMPP then type this in the address bar: localhost/PHP_TEST_1.php.
You are currently opening a simple file without running WAMPP you need to run it through localhost.
You shouldn't access your files directly. Normally with simulated apache-servers you need to type in "localhost" to let it render correctly
EDIT
If you want to select a file it would be "localhost/"

How to dynamically create a sub-domain from a simple webpage? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
What is the best way to create the sub-domain automatically from PHP. I want to develop a application in php in which a user can automatically create a sub-domain from my domain if he/she fills the registration form sucessfully.
Set up wildcard DNS for your subdomains (how you do this depends on your DNS server (or service provider)).
Configure your HTTP server so that your default virtual host will get everything from the wild carded DNS (how you do this depends on your HTTP server).
Pay attention to $_SERVER['HTTP_HOST'] in your script.

Categories