Is there any way to ban ALL proxy servers from accessing a website using some Apache configuration?

I am using Apache2 with Ubuntu 16.04 and PHP7.0. I tried using .htaccess setup but that does not seem to work i.e. did not stop anonymous proxies from visiting the website. I was trying this solution http://www.phpgenious.com/2009/03/block-proxy-servers-using-htaccess/ RewriteEngine on RewriteCond %{HTTP:VIA} !^$ [OR] RewriteCond %{HTTP:FORWARDED} !^$ [OR] RewriteCond %{HTTP:USERAGENT_VIA} !^$ [OR] RewriteCond %{HTTP:X_FORWARDED_FOR} !^$ [OR] … Read more

Apache2 Virtual Hosts Guide for Subdomains

I am trying to set up a subdomain that serves a different website that what my main domain name serves. I am using Debian Stretch. www.domain.name > my website application.domain.name > separate application I read up about virtual hosts, but it seems to only specify for completely different domain names. Are there any meaningful differences … Read more

BIngbot on my network IP

I was looking my apache logs and I find out this. 192.168.1.2 – – [30/Nov/2016:15:46:52 +0100] “GET http://www.Mywebsite…. HTTP/1.1” 200 5539 “-” “Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)” This happen a few times with that IP, but I cannot understand how is bingbot executing from that IP. Thanks in advance Answer If this is your local IP, … Read more

AH00094: Command line: ‘/usr/sbin/apache2’

i have installed ldap and phpldapadmin 3 weeks ago and everything was good. yesterday i wanted to configure web server, so the web server works fine, and the command service apache2 restart it gives as result : * Restarting web server apache2 [ OK ] but when i check the file /var/log/apache2/error.log i get : … Read more

weird thing for apache2 with error code 404

I’ve find a really really weird thing that’ve happened to me! there I set up a apache2 server when I need to build an apt repository I give all file with privilege 777,so I use command: wget http://10.0.7.180/repo/ncurses-term_6.0+20160213-1ubuntu1_all.deb and it works,but when I download another package there are a 404: wget http://10.0.7.180/vim_2%3a7.4.1689-3ubuntu1.2_amd64.deb –2018-12-20 22:23:22– http://10.0.7.180/vim_2%3a7.4.1689- … Read more