This script allows you to upload a CSV file containing website URLs and determines whether each site is powered by WordPress. It generates a CSV file with the results, which you can download directly.
- WordPress Detection:
- Identifies WordPress-powered websites by checking:
- HTTP headers for
X-Powered-By: WordPress
. <meta name="generator" content="WordPress">
tag in the HTML.- Common WordPress paths (
/wp-content/
,/wp-includes/
,/wp-admin/
).
- HTTP headers for
- Identifies WordPress-powered websites by checking:
- CSV Upload: Accepts a file containing website URLs for batch processing.
- Downloadable Results: Outputs a CSV file with a summary of the findings.
- PHP 7.0 or higher
- A web server (e.g., Apache, Nginx)
- Clone or download the repository.
- Place the script in your web server directory (e.g.,
/var/www/html/
for Apache). - Ensure file upload permissions are enabled on your server.
-
Prepare Your CSV File:
- Create a CSV file with one column listing website URLs.
- Example:
website.com example.org blogsite.net
-
Access the Script:
- Open the script in your browser (e.g.,
http://localhost/wordpress-checker/index.php
).
- Open the script in your browser (e.g.,
-
Upload the CSV:
- Use the file upload form on the page.
- Submit the file for processing.
-
Download Results:
- After processing, the script will generate a results file in CSV format for download.
- The results file contains two columns: the website URL and whether it is powered by WordPress.
If you upload the following CSV:
example.com
wordpresssite.org
staticwebsite.net
The output CSV will look like this:
site,is_wordpress
example.com,No
wordpresssite.org,Yes
staticwebsite.net,No
- index.php: The main script file containing PHP logic and HTML for the upload form.
- CSV File Not Processing:
- Ensure the file is formatted correctly with one website URL per row.
- No Results:
- Verify that the websites are accessible from your server.
- Check if the server allows outbound HTTP requests (cURL must be enabled).
- Permission Issues:
- Ensure your web server has permissions to read/write uploaded files.
This project is open-source and available for personal and commercial use. Feel free to modify and redistribute the script.
Have ideas for improvements? Feel free to fork the repository and submit a pull request. Feedback is always welcome!
If you encounter issues or have suggestions, please reach out to the project maintainer.