I had a folder under ~/Sites, let's call it Foo, from which I was sharing a Wordpress site-in-development via Apache. This was working fine, I'd mapped foo.local to 127.0.0.1 in my hosts file and was accessing the site from there on my laptop.
Then, I tried to access the site from my iPhone. I was able to see the root index of ~/Sites from the phone by surfing to my-computers-hostname.local, but couldn't access the Wordpress site, as it had been set up to believe its address was foo.local, and therefore had hardcoded references to that URL in its database. When I attempted to change its URL setting to my-computers-hostname.local, something very strange happened: I received an authorization error when attempting to save the change. From that point forward, the entire folder containing the Wordpress site disappeared from the index page at foo.local / my-computers-hostname.local, and any attempts to access it by URL were met with a 403 - Authorization Refused error from the webserver.
Listing the folder in question in the Terminal showed me that the com.apple.quarantine extended attribute had been applied to it and to all files contained within. What would cause the operating system to quarantine the folder? Was it the attempted access from another machine, or something to do with Wordpress's configuration?
xattr -dr com.apple.quarantine <path>works ! – parasrish Oct 02 '17 at 09:42xattr -dr com.apple.quarantine <path>gave meoption -r not recognized, butxattr -d com.apple.quarantine <path>worked! – saulspatz Sep 16 '18 at 14:55the -d option ('delete'), causes the given attribute name (and associated value), to be removed—-r If a file argument is a directory, act as if the entire contents of the directory recursively were also specified (so that every file in the directory tree is acted upon).– jsejcksn Sep 26 '22 at 10:33