Ecommerce Shopify WordPress Discussion

WordPress ABSPATH PHP File Issues

Good afternoon, I am using WordPress for my site and have some custom php files in my child theme. These are used for processing form data, sending emails, sending SMS messages and also creating password encoded zip files. I wanted to not allow direct access to these php files, so I read including the following would stop this issue: if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } I have checked my wp-config file to ensure ABSPATH is defined. I am assuming that because my form action path is a direct path to the php file URL i.e action="mywordpresswebsite.com/folder/myFormFile.php" that perhaps this is outside of WordPress' initialisation process and therefore ABSPATH isn't being defined? I'm not entirely sure and am also wondering about people's thoughts on if there are security issues with the way I have done this. Is there security issues if my php files' are directly accessible? Just to confirm, the actual process form script denies access to all GET requests, it's the other php files that are required that would contain the ABSPATH check. Any help is massively appreciated, and I want to ensure my site is secure to the highest degree. Kind regards
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.