Harvestmen have a pair of scent glands that open through ozopores. The literature suggests a link between the morphology of the ozopore area and the emission of a defensive secretion. A previous study on a species that aggregates in open areas, where individuals are probably more easily spotted by predators, showed that this defensive secretion causes conspecifics to flee. However, it is unknown whether this behavior occurs in species that aggregate in sheltered areas, where prey are harder to find. Herein, we describe the morphology of the ozopore area, the mode of emission of the defensive secretion, and its chemical composition in the harvestman Discocyrtus pectinifemur. We also tested if the defensive secretion is used as an alarm pheromone. We found that D. pectinifemur releases the defensive secretion in different ways, one of them being as a jet. Emission as a jet contrasts with that known for all congeners previously studied, and is in accord with the expected morphology of the ozopore. We found that the defensive secretion of D. pectinifemur does not function as an alarm pheromone. The composition of the defensive secretion, a mixture of quinones, is congruent with those already described for the clade that includes Discocyrtus. Our results support the link between the morphology of the scent glands area and the emission behavior of the defensive secretion, and they suggest that the alarm pheromone function in harvestmen may be dependent on ecological factors.