Where/How is generated the html code of vsftpd? - linux

I mean the html code generated when you get into ftp://yourserver... I tried to google it with no luck, not found in the project webpage either. I'd like to modify that code to do it more mobile friendly.
Thank you in advance

If you use a browser to load an FTP directory then the HTML page will be generated by the browser from the directory listing.
For example, see this part of the source code for Google Chrome.

Related

"chrome://favicon/myurl" doesn't load the on the webpage but loads in new tab

I am developing a personal productive app. The bookmark manager is part of it.
I use a lot of two-step verification websites so it is difficult to bypass that to get the webpage favicon.
However, when I use "chrome://favicon/https://stackoverflow.com/" I can easily get the favicon of any website.
But the issue is that it works when I open in a new tab but they don't work on my webpage however, in the
For example.
<img src="chrome://favicon/https://stackoverflow.com/" />
Any suggestions on how to fix it. Thanks a mill in advance.
You can Get favicon by https://stackoverflow.com/favicon.ico Of any website. Just add /favicon.ico at the domain. There is no need of using chrome://favicon
Often you can get icon of site by requesting <website>/favicon.ico. For example, it works perfectly for https://stackoverflow.com/favicon.ico. (and it is 32x32, not 16x16 using chrome://favicon).

Google couldn't fetch my sitemap.xml file

I've got a small flask site for my old wow guild and I have been unsuccessful in getting google to read my sitemap.xml file. I was able to successful verify my site using googles Search Console and it seems to crawl it just fine but when I go to submit my sitemap, it lists the status as "Couldn't fetch". When I click on that for more info all it says is "Sitemap could not be read" (not helpful)
I originally used a sitemap generator website (forgot which one) to create the file and then added it to my route file like this:
#main.route('/sitemap.xml')
def static_from_root():
return send_from_directory(app.static_folder, request.path[1:])
If I navigated to www.mysite.us/sitemap.xml it would display the expected results but google was unable to fetch it.
I then changed things around and started using flask-sitemap to generate it like this:
#ext.register_generator
def index():
yield 'main.index', {}
This also works fine when I navigate directly to the file but google again does not like this.
I'm at a loss. There doesn't seem to but any way to get help from google on this and so far my interweb searches aren't turning up anything helpful.
For reference, here is the current sitemap link: www.renewedhope.us/sitemap.xml
I finally got it figured out. This seems to go against what google was advising but I submitted the sitemap as http://renewedhope.us/sitemap.xml and that finally worked.
From their documentation:
Use consistent, fully-qualified URLs. Google will crawl your URLs
exactly as listed. For instance, if your site is at
https://www.example.com/, don't specify a URL as https://example.com/
(missing www) or ./mypage.html (a relative URL).
I think that only applies to the sitemap document itself.
When submitting the sitemap to google, I tried...
http://www.renewedhope.us/sitemap.xml
https://www.renewedhope.us/sitemap.xml
https://renewedhope.us/sitemap.xml
The only format that they were able to fetch the sitemap from was:
http://renewedhope.us/sitemap.xml
Hope this information might help someone else facing the same issue :)
put this tag in your robots.txt file Sitemap: domainname.com/sitemap.xml. Hope this will be helpful.

Track from where link is clicked node.js

I'm trying to track from where my links are clicked.
Exemple I place a link to my website on facebook, instagram, linkedin.
I would like to know where my link is clicked most of the time.
bit.ly does it and I don't know how.
One of my ideas was to identify links like
www.exemple.com/facebook_url
www.exemple.com/instagram_url
but if I can avoid this it would be perfect.
Any idea ? :)
I found how !
req.headers.referer;
give me the url used to redirect my user :)
The simplest way to do this would be to set up a web server with redirects and analytics already built in. You could also build your own analytics using a redirecting html + js
If you have access to a webserver, you could use PHP to do a conditional redirect.

Excel VBA: File Download works from Browser but program based method fails

I have tried all the solutions provided over here
How do i download a file using VBA (Without internet explorer)
However I am not able to download following file:
http://rbidocs.rbi.org.in/rdocs/ATM/DOCs/AT1015D7D4F2BE7E4E412BBF4AB05C8A5DB585.XLS
It is public document and it can be easily downloaded using browser but I am not able to get it work in Excel VBA.
Here is the page containing the link
https://m.rbi.org.in/Scripts/ATMView.aspx
Well I realized after reconciling HTTP request that although the link is http, it automatically redirects to https. So by just changing http to https in the link, it worked for me.
Thanks everyone.

When using Video.js is there any way I can avoid the webpage content alert?

I'm trying to use Video.js to display a small video on our team sharepoint page (Sharepoint 2007). It works great, but the 'Do you want to view only the webpage content that was delivered securely?' alert always displays when you navigate to the page. The security settings on the computers cannot be changed, but is there any way I can avoid this alert being displayed?
Thanks in advance for any help.
Thanks,
Simon
This is happening because the page being accessed is served over HTTPS, but some content loaded remotely comes from HTTP. If you're using the Video.js CDN-hosted files, you'd want to change the include tags to look like this:
<link href="//vjs.zencdn.net/4.3/video-js.css" rel="stylesheet">
<script src="//vjs.zencdn.net/4.3/video.js"></script>
These are called protocol relative urls, meaning it will use whatever protocol the page is to load the files.
Hope that helps!

Resources