Skip to content

Code to send a message to a Slack channel when someone visits a webpage.

Notifications You must be signed in to change notification settings

pda87/Slack-WebsiteVisitorMessage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Slack-WebsiteVisitorMessage

A JavaScript Ajax request embedded in a HTML file which calls a PHP script when the web page is served. This sends the message

You have a new website visitor

to a Slack messenger channel when ran. Uses the Slack API and requires a few values to be input into the PHP script.

There is another Post method in the PHP script, which uses IPify to get the client IP address and if there are no Adblockers enabled, uses this to get the GPS location from IP API. This visitor information is then sent as a Slack message.

About

Code to send a message to a Slack channel when someone visits a webpage.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published