SOLVED Completely disable entire site?

NetsSource

Member
Jul 9, 2018
9
4
3
Naperville IL
cPanel Access Level
DataCenter Provider
Hi

One of our customers had a site, that had some malicious code. He disabled the site (let's say)
example.com

If you visit that domain, it is disabled. However, there is a link still enabled (let's say)

example.com/files/this_directory/that_directory/nasty_code.html

Is this possible or is the link still cached in my browser?


Thanks
 

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
807
160
168
New Jersey
cPanel Access Level
DataCenter Provider
Depends how it was disabled, did he put 'deny from all' in .htaccess?

Could still be overwritten if there is another .htaccess allowing access to 'nasty_code.html'

But yes it could be cached in browser, just open up your browser in incognito mode and test it.
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
944
423
363
cPanel Access Level
DataCenter Provider
We do similar by blocking it via .htaccess

Code:
Order deny,allow
Deny from all
Allow from ##.##.##.##
That way the site owner can still access email and you can allow them access via the "allow from" so then can run updates etc. As @Jcats said, it's not foolproof as the .htaccess file can easily be overwritten.