This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Global .htaccess for Sentora and/or Apache
#1
[Not Solved] Global .htaccess for Sentora and/or Apache
Is there a location for a "common" .htaccess file that all visitors on a server pass through in order to reach a specific domain? This would be used to store a list of IP Address denies rather than having to create an .htaccess for each domain's site.
Reply
Thanks given by:
#2
[Not Solved] RE: Global .htaccess for Sentora and/or Apache
HTACCESS is generally document root specific. To my knowledge there is not a global .htaccess for the document roots in /var/sentora/hostdata. But there may be for the UI itself.

It would be more beneficial to put your IP denies in /etc/hosts.deny, that way they are completely blocked from the server.
Brad J Trammell
Director of Operations
SparkRack.com
Reply
Thanks given by:
#3
[Not Solved] RE: Global .htaccess for Sentora and/or Apache
(01-10-2020, 12:32 AM)rsthomas Wrote: Is there a location for a "common" .htaccess file that all visitors on a server pass through in order to reach a specific domain?  This would be used to store a list of IP Address denies rather than having to create an .htaccess for each domain's site.

Not an Apache functionality, definately go with fail2ban, customize some jails, write your own... I have around 3000-4000 banned IP's on a 7 day ban and around 800 in recidive jail on a month long ban. It does great job lowering the load on your servers.

Protips: 
- move ssh port to some other than 22 and auto-ban all ip's connecting to 22. it's such a sweet honeypot. 
- use webexploits jail, use fakegooglebot jail
- use badbots jail with updated botlist from here: https://github.com/mitchellkrogza/nginx-...ot-blocker (needs escaping)
Reply
Thanks given by:


Possibly Related Threads...
Thread Author Replies Views Last Post
How to run multiple version PHP with Apache (use Sentora panel) on Centos ??? BigBang 2 371 Yesterday, 11:55 AM
Last Post: zaidaluce
SSL install breaks apache service EGOSKY123 1 620 10-28-2020, 12:12 AM
Last Post: iraqiboy90
WHMCS with Sentora vaxition 0 368 08-06-2020, 03:23 AM
Last Post: vaxition

Forum Jump:


Users browsing this thread: 1 Guest(s)