Report Broken link

tesyoo

New Member
Messages
32
Reaction score
0
Points
0
is there a script that can make "Report Broken Link" button and when people click it , it alarm me the link is broken?
 

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
A more user friendly way would be to create a custom 404 page, and to add a snippet to get the url of the broken page and add it to a database.
 

xPlozion

New Member
Messages
868
Reaction score
1
Points
0
if it's an offsite url, then have a db, make a table called broken_links, add a row named url, and in the code, if they click on "Report Broken Link", it'll add it to the db.

Granted you need to know php and mysql to do this, i can show u how the query might look:

PHP:
mysql_query("INSERT INTO broken_links (url) VALUES ('".$url."')");
 
Top