rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: bobxzx on March 01, 2019, 06:11:28 AM

Title: Allowed referrer question
Post by: bobxzx on March 01, 2019, 06:11:28 AM
I'm using 2.2f as a traffic monitor for another site I have that links to my hfs to show me what pages of my site are getting accessed. I see visitors on the log when they go thru my site but I also see web crawlers just sweeping ip's for open ports that I want to keep out of hfs. I can plug my front page addy into the allowed referrer but that will only show me when my front page is accessed & I have dozens of other pages on that site that get ignored using just the main page addy. Is there a way to get the allowed referrer to recognize all addy extensions of my site similar to ip blocking where you can block a string with the asterisk? A search of your forum didn't give any results on this topic so I hope this isn't a redundant question.
Title: Re: Allowed referrer question
Post by: bmartino1 on March 01, 2019, 01:44:05 PM
Sounds like you need to setup a spider bit text file and some other security.

Out of curiosity, why are you still running 2.2f, the latest stable version is 2.3m ?

As for the crawling bots first setup a robottxt file and at it to the root of hfs:
https://varvy.com/robottxt.html

Title: Re: Allowed referrer question
Post by: bobxzx on March 01, 2019, 06:46:43 PM
The reason I'm still on an older version is I sometimes like to have 2 independent instances of hfs running on different ports but last time I upgraded that was not possible, the 2nd opened hfs would swap the html with the 1st or visa versa, somehow they were intertwined instead of independent of each other. I forget now but it was a nuisance I couldn't tolerate. As far as adding the robot file to the root, that's something I'm not familiar how to execute & not sure if the mentioned effects are what I really am after. Modifying the html is as far as I'm savvy enough to go with it right now. Appreciate the feedback.
Title: 2 independent instances of HFS running
Post by: LeoNeeson on March 06, 2019, 11:00:54 PM
The reason I'm still on an older version is I sometimes like to have 2 independent instances of hfs running on different ports but last time I upgraded that was not possible, the 2nd opened hfs would swap the html with the 1st or visa versa, somehow they were intertwined instead of independent of each other.
You should keep in mind that to have 2 independent instances of HFS running, you must have a copy of HFS.exe in 2 different folders and each instance should save the configuration stored in a .ini file (also known as portable mode). You could do that, by going (in Expert mode) to Menu > Save options > to file. This is the way to go to not 'mix' or swap the HTML or the templates of one version with another. Another thing: before upgrading, always make a full backup of your HFS folders. If you want to start from zero in portable mode, you could put an empty hfs.ini along with the HFS.exe executable, and HFS will save all the configurations there.

If only after doing those steps the error continues, then perhaps you could have found a bug that should be fixed (before HSF v2.4 is released). The best thing you can do is share privately with Rejetto (http://rejetto.com/forum/index.php?action=profile;u=1) (by sending him an email to a@rejetto.com or a private message here (http://rejetto.com/forum/index.php?action=pm;sa=send;u=1)), all the details and the steps to reproduce that error (he will confirm you if that is a bug of HFS or not). Your contribution on this, is important and makes HFS a even greater software. :)